[css-d] Layout problems: extra vertical space

2010-10-18 Thread Rory Bernstein
Here I am again, with different layout problems on the same project, different page: http://weinraub.ehclients.com/lawyers/ You will see some annoying grey, horizontal strips on the page: under the photo of the windows under the black nav bar another one just under that... and one at the bottom

Re: [css-d] Layout problems: extra vertical space

2010-10-18 Thread G.Sørtun
http://weinraub.ehclients.com/lawyers/ You will see some annoying grey, horizontal strips on the page: under the photo of the windows under the black nav bar another one just under that... and one at the bottom Declare... img.yourclass {display: block;} ...or... img.yourclass

Re: [css-d] Layout problems: extra vertical space

2010-10-18 Thread Rory Bernstein
Thanks, Georg. That helped a lot! http://weinraub.ehclients.com/lawyers/ It is strange, but the image of the windows I had to use the vertical-align: bottom; rule, and the other 2 images liked the display: block; rule. When I used the display rule on the windows it moved it out to the right of

Re: [css-d] Layout problems: extra vertical space

2010-10-18 Thread G.Sørtun
Depending on relation to other elements you may have to add 'clear: left', 'right' or 'both' on an image to make it stay in position when applying 'display: block'. Images do after all start to behave like block-elements when you declare it. regards Georg

Re: [css-d] Layout problems: extra vertical space

2010-10-18 Thread Rory Bernstein
Ah. OK, makes sense. Thank you so much. Always an education on this list. Rory On Oct 18, 2010, at 3:49 PM, G.Sørtun wrote: Depending on relation to other elements you may have to add 'clear: left', 'right' or 'both' on an image to make it stay in position when applying 'display: block'.