|
|
|
|
|
|
|
|
|
#1 |
|
Me fail English? That's unpossible!
|
Quick and simple CSS question on borders
Well this *should* be simple... for someone.
I'm trying to set a wrapper class with a 20px left/right blue border, but it's not working. Can anyone spot the issue? Code:
<style type="text/css">
.wrapper {
width: 1000px;
font-size:24px;
text-align: center;
border-left-color:blue;
border-right-color:blue;
border-left-width:20px;
border-right-width:20px;
margin: 0 auto;
background:#aa2211;
}
</style>
|
|
|
|
|
|
#2 |
|
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
border-style:solid;
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
|
|
|
|
|
#3 |
|
Me fail English? That's unpossible!
|
Argh I thought that was the default. Thanks cd
|
|
|
|
|
|
#4 |
|
Progress rarely comes in buckets, it normally comes in teaspoons
Join Date: Jun 2005
Location: Dark Side Of Naboo
Posts: 1,289
|
You can put each border in one line of code:
border-right: 1px solid #ffdb00; border-left: 1px solid #ffdb00; |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|