...

View Full Version : Setting left borders in CSS



css6
11-29-2009, 01:38 AM
Hello,

I can set top and bottom borders in CSS using {border-top:#0f0f0f 4px solid;} , but left and right borders don't seem to work, although they should (?)

Anyone have any thoughts?

oesxyl
11-29-2009, 01:44 AM
Hello,

I can set top and bottom borders in CSS using {border-top:#0f0f0f 4px solid;} , but left and right borders don't seem to work, although they should (?)

Anyone have any thoughts?
must work:


border-left: solid 4px #0f0f0f;
border-right: solid 4px #f0f0f0;


validate css maybe is a typo somewhere and declaration is ignored.

best regards

Excavator
11-29-2009, 03:14 AM
Hello css6,
Show us the code that's not working.

css6
11-29-2009, 11:53 PM
CSS

.rightcontent {border-top:#f0f0f0 30px solid; width: 140px; background:#FFFFFF; margin: 0; overflow: auto; border-bottom:#f0f0f0 4px solid; border-right:#0f0f0f 4 px solid;}
.wrapper2 {overflow: auto; width: 154px; margin: 0; padding: 0;}


--
HTML

<td class="rightcontent" valign="top" width="160">

afapuyp
11-30-2009, 01:17 AM
I accept with CSS code: .rightcontent {border-top:#f0f0f0 30px solid; width: 140px; background:#FFFFFF; margin: 0; overflow: auto; border-bottom:#f0f0f0 4px solid; border-right:#0f0f0f 4 px solid;}
_______________________
Courtier conseil financement immobilier achat | (http://**************************/)Demande credit simulation plan de financement immobilier | (http://**************************/)Calcul pret projet financement immobilier travaux (http://**************************/)

css6
11-30-2009, 04:12 AM
I am new to CSS.

Would column width, or margin or padding settings make a difference for this?

In the code previously, the width for the column is defined as 236 px, and the top and bottom borders work. Do I have to define the Height of the column for the Left and Right borders to accept border-left and border-right?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum