Topic: another question on css. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10774" title="Pages that link to Topic: another question on css. (Page 1 of 1)" rel="nofollow" >Topic: another question on css. <span class="small">(Page 1 of 1)</span>\

 
jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 07-18-2002 20:06

ok is there a way I can change the color to the border using a hex color in this example code?:


<p style="background-color: yellow;margin:0; border:1.5em solid blue; padding:0;">

in other words I want to replace the "solid blue" with a hex color instead...

synax
Maniac (V) Inmate

From: Cell 666
Insane since: Mar 2002

posted posted 07-18-2002 20:32

Yup, just put the hex color in there and you're set. Solid isn't part of the color name however. "Solid" means that your border is a solid line. Solid can be replaced by none, hidden, dotted, dashed, double, groove, ridge, inset and outset.

The way border works in the style you curently have it in is "border: size style color". To learn more about go here: http://www.w3schools.com/css/css_reference.asp#border

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-19-2002 00:22

Yup. For example,

border:1.5em solid #4477AA;

Note that you can abbreviate hex colors when every two digits are repeated:

border:1.5em solid #47A;

I use this abbreviation quite often.

jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 07-19-2002 03:22

yeah, I noticed people were doing that but I was wondering how they pulled it off!

someoneInverse
Bipolar (III) Inmate

From:
Insane since: May 2002

posted posted 07-19-2002 11:28

hi
something along the lines of

<p style="background-color: yellow;margin:0; border:1.5em solid blue; padding:0;" onMouseOver="this.style.borderColor = '#47A'">test</p>

should do you
hth
I:.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu