Small CSS problem

Reply

Join Date: Feb 2008
Posts: 630
Reputation: daviddoria is a jewel in the rough daviddoria is a jewel in the rough daviddoria is a jewel in the rough 
Solved Threads: 46
daviddoria daviddoria is offline Offline
Practically a Master Poster

Small CSS problem

 
0
  #1
Oct 3rd, 2008
I have done some html many years ago, but never css. I downloaded a template
http://www.freecsstemplates.org/preview/exposure

But something has gone slightly wrong. When I use it on my website
http://doriad.myrpi.org/

you can see that the bottom "grey" bar is above the blue line, where in the example the grey is kind of the whole background. Can anyone briefly explain why that may be?

Thanks!

Dave
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 6
Reputation: fsav is an unknown quantity at this point 
Solved Threads: 0
fsav fsav is offline Offline
Newbie Poster

Re: Small CSS problem

 
0
  #2
Oct 3rd, 2008
Well it seems to have nothing to do with CSS: your footer is included in other <div>, like so:

HTML and CSS Syntax (Toggle Plain Text)
  1. <html>
  2. ...
  3. <body>
  4. <div id="page">
  5. <div id="sidebar">
  6. </div>
  7. <div id="content">
  8. <div class="post">
  9. <div class="title">
  10. </div>
  11. <br style="clear: both;"/>
  12. <br/>
  13. <div id="footer">
  14. // That's your footer here
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. </body></html>

Whereas in the template, it's outside of any other divs:

HTML and CSS Syntax (Toggle Plain Text)
  1. <body>
  2. // page
  3. <div id="footer">
  4. // footer
  5. </div>
  6. </body>

At least that's what I see. Hope that helps.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 630
Reputation: daviddoria is a jewel in the rough daviddoria is a jewel in the rough daviddoria is a jewel in the rough 
Solved Threads: 46
daviddoria daviddoria is offline Offline
Practically a Master Poster

Re: Small CSS problem

 
0
  #3
Oct 3rd, 2008
ah so silly... its pretty hard to keep track of those tags because html (for some reason) doesn't seem to complain if there are extra, or too few! seems like that should generate a "compiler error".

Guess I just have to get used to it!

Thanks
Dave
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Small CSS problem

 
0
  #4
Oct 5th, 2008
That's what indenting is for.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC