1 reply [Last post]
Josep Maria Aribau
Offline
newbie
Last seen: 19 years 15 weeks ago
Timezone: GMT+1
Joined: 2003-12-09
Posts: 2
Points: 0

How to simulate a table row that ocuped 100% of window, and cells are distributed proportionaly around 100% of the line.
Note: Is very important to do this for N divs. In the case of the example code it's easy to solve it, only put width:25%, but I need for N divs.

I have this for 4 divs (for example) but i need for N divs:

And I would like this for N divs:

This is the code that I use:

<html>
<head>
<style>
	div {float:left; border:1px solid; text-align: center; }
</style>
</head>
<body>

<div>1</div> 
<div>2</div>
<div>3</div>
<div>4</div>
....
<div>n</div>

</body>
</html>

Thanks for your atention. Laughing out loud

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 19 years 19 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

-Easy- Simulate table row - :?:

It seems to me that this is some type of tabulated data. I would use tables, they are perfectly suited for that job.

Regards
Day

The only way to learn is to do it yourself