Jul 24, 2008

Bordercolorlight/dark In Css?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > CSS (Cascading Style Sheets)

free web hosting

Bordercolorlight/dark In Css?

Amezis
Since the attributes bordercolorlight and bordercolordark are not Valid HTML 4.01, I want to do the same effect in CSS. Is that possible?

Reply

dodgerblue
As far as I know... There is no such attribute in CSS.

But don't take my word for it, though. You can check it out yourself at W3Schools.

http://www.w3schools.com/css/css_reference.asp

Reply

jlhaslip
You should be able to specify the border colours by including a Hex colour code to each or all borders using the properties of " border-color", "border-top-color",( also bottom, right, left).

The shorthand for specifying Border Properties is : width, style, color, in that order,
so, #table1 { border 1px solid #xxXXxx;} would set a solid 1 pixel wide border of colour xxXXxx to the element.

Styles available include solid, dotted, groove, double, inset, outset.
Possible values are "#hex value for colour", Transparent, Inherit.

Have fun...

Reply

Lozbo
You can also write the name of a color like:

#table1 {border: 1px solid black;}

And if you dont want all borders (top, right, bottom and left) you can specify it too:

#table1 {border:1px 0 0 0} which (in the order i wrote above) will give 1pixel to the top border and cero to the others. You cant tell the style and color in this shorthand though.....

Theres also a shorter - shorthand for width in the borders, which you can asign only two values to your border and it will assign the first one to the top and bottom borders and the second one to the left and right, like this:

CODE

#table1 {
border: 1px solid black;
border-width:1px 5px}


In order for this to work you must have set the other style and color attributes first...

This also works for margin, and padding...

Reply

Amezis
QUOTE(jlhaslip @ Oct 20 2005, 08:43 PM)
You should be able to specify the border colours by including a Hex colour code to each or all borders using the properties of " border-color", "border-top-color",( also bottom, right, left).
*


Oh yeah I didn't think about that! I am not that bad in CSS, and I knew that.. I just didn't think about it, but thanks, I'll try it! biggrin.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. css bordercolorlight - 46.10 hr back. (3)
  2. css bordercolorlight= - 46.11 hr back. (1)
  3. how to specify dark and light border color in css - 73.01 hr back. (1)
  4. yellow-light css color - 80.09 hr back. (2)
  5. bordercolorlight css - 105.33 hr back. (1)
  6. bordercolorlight html css - 142.40 hr back. (1)
Similar Topics

Keywords : bordercolorlight css


    Looking for bordercolorlight, dark, css

Searching Video's for bordercolorlight, dark, css
advertisement



Bordercolorlight/dark In Css?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE