![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to give a width to a floated div which is greater than the width of the image it contains? What I want to do is display some images which will be of different sizes so that they have their centers vertically aligned, I was thinking of using a fixed width container with one image floated left and one right with the images centered in their respective boxes and then the same down the page. I am using a table to obtain the effect on the site at the moment in the awards received pages. |
#3
| |||
| |||
|
|
Grytpype-Thynne wrote: Is it possible to give a width to a floated div which is greater than the width of the image it contains? What I want to do is display some images which will be of different sizes so that they have their centers vertically aligned, I was thinking of using a fixed width container with one image floated left and one right with the images centered in their respective boxes and then the same down the page. I am using a table to obtain the effect on the site at the moment in the awards received pages. Have you tried something like the following: In HTML: div class="box" img src="img1.jpg width="50" /div and CSS: .box {text-align: center; width: 100px} I haven't tested it but if I understand you correctly it should work - --Nikolaos |
#4
| |||
| |||
|
|
Is it possible to give a width to a floated div which is greater than the width of the image it contains? What I want to do is display some images which will be of different sizes so that they have their centers vertically aligned, I was thinking of using a fixed width container with one image floated left and one right with the images centered in their respective boxes and then the same down the page. [snip] |
![]() |
| Thread Tools | |
| Display Modes | |
| |