| | Since the attributes bordercolorlight and bordercolordark are not Valid HTML 4.01, I want to do the same effect in CSS. Is that possible? |
|
|
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
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...
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... 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!
Recent Queries:-
Keywords : bordercolorlight css
|
|
![]() 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 |
|