|
Posted by Stan McCann on 03/06/06 18:15
dorayme <doraymeRidThis@optusnet.com.au> wrote in news:doraymeRidThis-
59DE0E.16464706032006@news-vip.optusnet.com.au:
> I have put up at http://dorayme.150m.com/test1/main.html
> something to illustrate something that puzzles me. I found I
> could get rid of the white space below and above the inline list
> by assigning negative bottom margin to the the banner div and
> same for top margin for the content div. I can also, of course,
> be rid of it by assigning suitable colours to backgrounds. But I
> would rather like to understand what is going on here. The body
> or html element is white by default and it presumably is shining
> through. What is it shining through, precisely, if anything?
>
> I put a green (#CFC ) background for #navStrip in the css to try
> to find out what exactly it is that is white! It does not show up
> - except, surprise, surprise, in what we might as well call a
> deprecated browser (IE 5 Mac) and then only covering the top
> white space above the menu strip, not the bottom! In all my
> modern browsers there is just the white space.
>
> I tried this green bg to various things to try to track down what
> is going on but so far have failed. Any ideas?
>
> Is the inline link mark up and css not kosher? I don't know.
>
If I'm looking at the right thing, the <style> element way down the
page? That is not supposed to be outside of the <head>.
As for your white space, I think it has to do with
#navStrip ul { background-color: silver; text-align: left; margin-left:
0; padding-left: 0; border-bottom: 1px solid gray; }. Notice you don't
set a top/bottom margin. Try margin:0 instead of margin-left:0.
I also noted an <img> with width="100px" height="75px". px is
understood. I don't remember for certain if this is an error but the
px is certainly unneeded.
--
Stan McCann, "Uncle Pirate" http://stanmccann.us/
Webmaster, NMSU at Alamogordo http://alamo.nmsu.edu/
Now blocking Google Grouper posts and replies.
http://blinkynet.net/comp/uip5.html
Navigation:
[Reply to this message]
|