Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-29-2009, 01:38 AM   PM User | #1
css6
New to the CF scene

 
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
css6 is an unknown quantity at this point
Setting left borders in CSS

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?
css6 is offline   Reply With Quote
Old 11-29-2009, 01:44 AM   PM User | #2
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
Quote:
Originally Posted by css6 View Post
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:
Code:
border-left: solid 4px #0f0f0f;
border-right: solid 4px #f0f0f0;
validate css maybe is a typo somewhere and declaration is ignored.

best regards
oesxyl is offline   Reply With Quote
Old 11-29-2009, 03:14 AM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello css6,
Show us the code that's not working.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 11-29-2009, 11:53 PM   PM User | #4
css6
New to the CF scene

 
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
css6 is an unknown quantity at this point
re:

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">
css6 is offline   Reply With Quote
Old 11-30-2009, 01:17 AM   PM User | #5
afapuyp
New to the CF scene

 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
afapuyp has a little shameless behaviour in the past
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 | Demande credit simulation plan de financement immobilier | Calcul pret projet financement immobilier travaux
afapuyp is offline   Reply With Quote
Old 11-30-2009, 04:12 AM   PM User | #6
css6
New to the CF scene

 
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
css6 is an unknown quantity at this point
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?
css6 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:35 PM.


Advertisement
Log in to turn off these ads.