1
bethanyw
Css and layout is not showing correctly in custom module
  • 2007/10/24 0:53

  • bethanyw

  • Just popping in

  • Posts: 6

  • Since: 2007/10/24


I am new to XOOPS and designed a new homepage for http://www.marketagenda.com with html and CSS. I am trying to implement it in XOOPS. I don't want to change the main styles.css, because the rest of the site needs to stay the same. I am only changing the homepage, so I created a new CSS file named index.css and put it in the same directory as styles.css

I inserted the html into the module, and when I preview it, some of the text is not where it is supposed to be. Can anyone tell me what the problem might be? I would really appreciate your help.

here is the html & CSS code for reference:






Untitled Document






 














Wall Street’s FREE comprehensive

source for financial event information:




  Road Shows

  Conference Calls

  Conference & Tradeshow Schedules

  Conference Calls & Webcasts

  CEO & Analyst Interviews

  Analyst Meetings

  Research Reports

  Breaking News

  Investment Tools







How does marketAgenda work?



1. Event planners enter data on upcoming
financial

events for public companies including:
road shows, tradeshows, conferences, webcasts,
conference

calls, CEO interviews, IPOS, filings,
earnings releases,

analyst meetings, stock splits,
and stock dividends.

2. Our system matches events to your investment

preferences and sends a custom e-mail newsletter

to you.



3. You click on events in the newsletter to find out

more details. You can also search
our
event database

by industry, location, market
cap or security type.







Find out when

companies are

having financial

events in your

area with our

web calendar,

which provides

financial event

data matched to

your preferences.

Click here to view our

WEB CALENDAR







Here is the CSS code:

#container {
text-align: center;
height: 600px;
width: 800px;
background-image: url(Images/index_background.jpg);
padding: auto;
background-repeat: no-repeat;
margin: auto;
}
#login {
width: 257px;
float: left;
height: 160px;
padding-top: 400px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 25px;
font-family: Arial;
font-size: 11px;
color: #FFFFFF;
text-align: left;
}
#center {
float: left;
width: 280px;
height: 556px;
text-align: left;
padding-left: 30px;
font-family: Arial;
font-size: 11px;
padding-top: 7px;
}
#bullettext {
padding-left: 15px;
font-family: Arial;
font-size: 11px;
line-height: normal;
}
#rightcolumn {
float: left;
height: 140px;
padding-top: 405px;
font-family: Arial;
font-size: 11px;
text-align: left;
padding-left: 8px;
}
#calendartext {
float: left;
padding-top: 500px;
font-family: Arial;
font-size: 10px;
clear: right;
}

#calendartext a:link {
color: #3366cc;
text-decoration: underline;
}

#calendartext a:hover {
color: #009900;
text-decoration: underline;
}
#footer {
height: 20px;
float: left;
width: 488px;
font-family: Arial;
font-size: 11px;
text-align: left;
padding-left: 312px;
padding-top: 5px;
clear: both;
}

2
Will_H
Re: Css and layout is not showing correctly in custom module
  • 2007/10/24 1:51

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


uhm,

Pulled this from your theme.html...

<{if $xoops_isuser == 1}>  <{include file="market/header.html"}>  <{include file="market/modules.html"}>  <{include file="market/footer.html"}>  <{else}>
<{include 
file="market/header.html"}> <{include file="market/system.html"}> <{include file="market/footer.html"}>
<{/if}>


Change it to
<{if $xoops_isuser}>  <{include file="market/header.html"}>  <{include file="market/modules.html"}>  <{include file="market/footer.html"}>  <{else}>
<{include 
file="market/header.html"}> <{include file="market/system.html"}> <{include file="market/footer.html"}>
<{/if}>


guests cant see your site.

Also, what you provided us was the source code...

3
Sublime
Re: Css and layout is not showing correctly in custom module
  • 2007/10/24 1:55

  • Sublime

  • Just popping in

  • Posts: 99

  • Since: 2006/5/23


You're closing twice also.

Once here:
<title>Untitled Documenttitle>
head>


And again here:
.style5 {font-size11px}
.
style10 {color#0033CC}
.style11 {
font-size10px;
color#009900;
font-familyArial;
font-weightbold;
}
-->
style>head>



Remove in this one:
<title>Untitled Documenttitle>
head>

4
Will_H
Re: Css and layout is not showing correctly in custom module
  • 2007/10/24 1:56

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


correction, guests cannot see your site without the https://

5
Will_H
Re: Css and layout is not showing correctly in custom module
  • 2007/10/24 2:01

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


as far as module content and customizing via css.

I have found that it is much easier to declare new classes and id's in the module itself rather than going to all of the trouble of dealing with shared classes and ids. then you can just append your new classes and id's to the end of your existing stylesheet.

6
bethanyw
Re: Css and layout is not showing correctly in custom module
  • 2007/10/24 14:17

  • bethanyw

  • Just popping in

  • Posts: 6

  • Since: 2007/10/24


Hi Will,

Thanks for your replys. I removed the extra head tag. That didn't help the layout problems. Do you think installing Pico and putting the html in that module would help? It seems like the text is not wrapping properly. The footer is way down the page, as well as one other div tag with text in it. The container div tag is not centering as it should.

Thanks,
Bethany

Login

Who's Online

561 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 561


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits