![]() |
HTML/CSS - Flexibile number of columns
Several image sites out there like deviantart and bing vary the number of columns of images, based on the screen size. If you resize the window to make it smaller for example, the number of columns of images decreases.
Can this be achieved simply with HTML / CSS or is a javascript mod needed to work out the screen size? |
1 Attachment(s)
Hi,
My current code is designed to have a flexible number of columns depending on the width of the screen. It is just divs with a left and right margin: HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Code:
div{ Can anyone help me with this? |
All times are GMT. The time now is 03:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|