Posted by Jonathan N. Little on 05/19/06 01:36
In article <ED3bg.63$ni4.32@newsfe2-gui.ntli.net>, david.graham18
@ntlworld.com says...
> > Try:
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd">
> > <html>
> > <head>
> > <title>More Flexible Layout</title>
> > <style type="text/css">
> > #banner { margin: 30px 0 0 5px; border: 0; padding: 0; color: #fff;
> > background-color: #00a000; height: 100px; }
> > #banner IMG { border: 0; display: block; }
> > #banner #logoRight { float: right; }
> > #banner #logoLeft { float: left; }
> > </style>
>
>
> Why the display block? - what does that do?, can't you just float left and
> right without the display block?
IMG's are inline by default, float applies to block elements not inline
elements. I guess floating may 'imply' setting IMG to block...need to
research if so, else it just might be good practice such as return(void)
for subroutines in programming....
--
Jonathan
[Back to original message]
|