D
Deryck
Hi,
I'm trying to create a box in CSS that will contain a single image and a
copyright acknowledgement. The copyright acknowledgement will always be
wider than the image and I want the copyright to start a new line(s) when it
reaches the width of the image (to avoid wasted space above the copyright).
This is what I wrote:
..mapbox{
position: relative;
float: left;
padding-right: 10px;
padding-bottom: 10px;
border: 0px;
width: 625px;
font-size: 0.8em;
}
It does exactly what I want for the first image (which is 625 pixels wide).
The second image is just 500 pixels wide so I get a gap of 125 pixels if I
use .mapbox again.
Since I (currently) only have 2 images I just created .mapbox2 with width
set to 500px. That works too but it doesnt really seem the way to go.
Is it possible to have the box set to the width of the image and no more and
have no wasted white space?
If you want URLs rather than the above, see
http://www.longhope.co.uk/getting_here.php
and
http://www.longhope.co.uk/getting_here2.php
Comments and advice on the colours of the headings and links would also be
appreciated.
The code validates.
Thanks
Deryck
I'm trying to create a box in CSS that will contain a single image and a
copyright acknowledgement. The copyright acknowledgement will always be
wider than the image and I want the copyright to start a new line(s) when it
reaches the width of the image (to avoid wasted space above the copyright).
This is what I wrote:
..mapbox{
position: relative;
float: left;
padding-right: 10px;
padding-bottom: 10px;
border: 0px;
width: 625px;
font-size: 0.8em;
}
It does exactly what I want for the first image (which is 625 pixels wide).
The second image is just 500 pixels wide so I get a gap of 125 pixels if I
use .mapbox again.
Since I (currently) only have 2 images I just created .mapbox2 with width
set to 500px. That works too but it doesnt really seem the way to go.
Is it possible to have the box set to the width of the image and no more and
have no wasted white space?
If you want URLs rather than the above, see
http://www.longhope.co.uk/getting_here.php
and
http://www.longhope.co.uk/getting_here2.php
Comments and advice on the colours of the headings and links would also be
appreciated.
The code validates.
Thanks
Deryck