3 replies [Last post]
paCkeTroUTer
paCkeTroUTer's picture
User offline. Last seen 7 years 9 weeks ago. Offline
rank Enthusiast
Enthusiast
Timezone: GMT+11
Joined: 2003-06-27
Posts: 240
Points: 0

I am trying to get rid of double borders generated by Div's which are floated in a row. An example of it can be seen here

How can I get rid of the double borders which gets generated by the adjoining div's ?

Here is the css for the page:

.divRows {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #0099CC;
	background-color: #CCCCCC;
	margin: 0px;
	padding: 10px;
	border: thin solid #CC0000;
	height: 18px;
	clear: right;
	position: relative;
	float: left;
}

Tony
Tony's picture
User offline. Last seen 5 hours 35 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3215
Points: 522

div border-collapse

Hi paCkeTroUTer,
Since the divs are all floated, and you can't be sure which sides meet other divs, I don't think it's possible.

Border-collapse only works on table elements Sad

Your question may have already been answered, search and read before you ask.

paCkeTroUTer
paCkeTroUTer's picture
User offline. Last seen 7 years 9 weeks ago. Offline
rank Enthusiast
Enthusiast
Timezone: GMT+11
Joined: 2003-06-27
Posts: 240
Points: 0

Collapse Borders ?

bugger ! So I can't achieve a Table Cell like appearance with CSS ?

Tony
Tony's picture
User offline. Last seen 5 hours 35 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3215
Points: 522

Collapse Borders ?

You can achieve it if you position each box without floating.
That way you will know which box is next to another.

But then you lose the nice wrapping effect floating gives with window resize.

Your question may have already been answered, search and read before you ask.