PDA

View Full Version : Quick and simple CSS question on borders


HowlingWulf
2009-12-16, 06:00 PM
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?

<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>

The test page is http://www.howling-wulf.com/test.htm

cd34
2009-12-16, 06:03 PM
border-style:solid;

HowlingWulf
2009-12-16, 06:13 PM
Argh I thought that was the default. Thanks cd

Maj. Stress
2009-12-16, 06:52 PM
You can put each border in one line of code:

border-right: 1px solid #ffdb00;
border-left: 1px solid #ffdb00;