Chaning the settings with Div Style
-
I want to change the color and lenght associated with the divider code I have been using. Right now it is red. How do I set the color value? I would prefer a dark blue. Also how can I automatically have it extend all the way across the full width of my display area? Right now it is about 2/3 the way across.
<div style=”width:75%;height:2px;background:#ff0000;”>
Would it be:
<div style=”width:100%;height:2px;background:#ff0000;”>
I don’t know the color codingThe blog I need help with is: (visible only to logged in users)
-
For a full-width div you simply write:
<div style="height:2px;background:#ff0000;"></div>
But note that an empty div will be stripped out if you switch the editor to Visual. Safer:
<div style="height:2px;font-size:0;background:#ff0000;">-</div>
Pure blue is 00f. Replacing f with e, d, c, b, a, 9, 8, 7 etc will make it progressively darker. For more interesting hues see here:
http://www.december.com/html/spec/color.html
- The topic ‘Chaning the settings with Div Style’ is closed to new replies.