HighDots Forums  

Help needed with whitespace around images

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Help needed with whitespace around images in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tony Carnell
 
Posts: n/a

Default Help needed with whitespace around images - 08-01-2004 , 07:46 AM






Hi,

I've created a series of pages, one of which can be found at:
http://www.ammicro.co.uk/products/2ndWave.htm

The stylesheet for this page can be found at:
http://www.ammicro.co.uk/r/embellish.css

The problem concerns the whitespace around the product images that appear on
the page (I've temporarily placed a grey border around the ones in question
to highlight them).
As you can (hopefully) see, each of the product images overlays the banner
for the product below. This is more visible in FireFox and Opera than it is
in IE6, but it's still there.

How do I go about creating or modifying a rule that will ensure each banner
is positioned clear of the image above it. It's probably easy but like all
these things, it's only easy if you know the answer :-)

Thanks in advance.
Tony.



Reply With Quote
  #2  
Old   
Stephen Poley
 
Posts: n/a

Default Re: Help needed with whitespace around images - 08-01-2004 , 10:14 AM






On Sun, 01 Aug 2004 11:46:41 GMT, "Tony Carnell" <tony (AT) fluvius (DOT) co.uk>
wrote:

Quote:
I've created a series of pages, one of which can be found at:
http://www.ammicro.co.uk/products/2ndWave.htm

The stylesheet for this page can be found at:
http://www.ammicro.co.uk/r/embellish.css

The problem concerns the whitespace around the product images that appear on
the page (I've temporarily placed a grey border around the ones in question
to highlight them).
As you can (hopefully) see, each of the product images overlays the banner
for the product below. This is more visible in FireFox and Opera than it is
in IE6, but it's still there.

How do I go about creating or modifying a rule that will ensure each banner
is positioned clear of the image above it. It's probably easy but like all
these things, it's only easy if you know the answer :-)
You just need to put a clear: right (or clear: both) on h6, and increase
the padding if desired. (Though you probably don't actually want h6 -
you seem to jump from h2 to h5.)

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.