Editor's Blog10 mins ago
How do you position photos in a horizontal row with CSS?
Can anyone point me to a tutorial or reference - or even if you know how to do it yourself - to show me how to position a horizontal row of small (50px x 50px) images, say about 8 of them, with equal spacing in between?
Each one will be a link to another page - I can do that bit fine!
Each one will be a link to another page - I can do that bit fine!
Answers
Best Answer
No best answer has yet been selected by Efkay. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.Too late to be useful I'm sure but I have recently moved over to using divs instead of tables for layout.
Add the following to the photo divs so they stack up in order with a 10 pixel spacing.
style="float: left; margin: 5px"
Or put those properties in the style sheet where you define the class used to hold the photos
Add the following to the photo divs so they stack up in order with a 10 pixel spacing.
style="float: left; margin: 5px"
Or put those properties in the style sheet where you define the class used to hold the photos
Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.