Quick CSS Question
- Started
- Last post
- 13 Responses
- epikore
I have text inside a div box. How do align the text inside the box to the right?
Also, is it possible to have to seperate link colors? Blue in one div box and green on another div box?
- brandelec0
text-align: right;
- 7point340
yes
- brandelec0
a.blue {
color:#0000FF;
}a.green {
color:#00ff00;
}
- 7point340
div id="box1"
div id="box2"
#box1 a {color: blue;}
#box2 a {color:green;}
- brandelec0
<a href=" " class="blue">this is blue link</a>
<a href=" " class="green">this is green link</a>
- brandelec0
7.34 you want to fight?
- epikore0
ah, thanks a bunch
- fugged0
u should use font tags whenever possible.
- 60% of the time they work every time7point34
- haflyingnowhere
- epikore0
text align thing didn't seem to work. Is there a way to also center it vertically? thanks
- epikore0
#header {
width: 200px;
height: 150px;
float: right;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color:#FFFFF
text-align: right;
}
- brandelec0
try putting a background on your header div, see if its lining up properly
- thismanslife0
Put a semi-colon after color:#FFFFF
- and ad an f or take 2 away7point34
- *add7point34
- That too :)thismanslife
- epikore0
damn, I always keep forgetting the semi colon, thanks