![]() |
How to Have Double Color Border Elements?
Working for one of my client where he had design for dual color border and the easiest way to get it done was to use 2 elements having border of different color..
HTML Code:
<div style="border:2px solid blue;">It is simple where you have DIV and one of them is actual border element and second is padding element which looks like border HTML Code:
<div style="padding:2px;background: Orange;border:2px solid blue;"> |
Re: How to Have Double Color Border Elements?
Nice thinking :)
|
Re: How to Have Double Color Border Elements?
Thanks
|
Re: How to Have Double Color Border Elements?
Nominate this article for Article of the month - Jun 2010
|
Re: How to Have Double Color Border Elements?
well... i'm not enthusiastic. You still have 2 elements. And the CSS code is bigger. where is the optimization?
|
Re: How to Have Double Color Border Elements?
Quote:
|
Re: How to Have Double Color Border Elements?
Then please enlighten me. What was the target then?
|
Re: How to Have Double Color Border Elements?
Quote:
|
Re: How to Have Double Color Border Elements?
Still do not understand. What CMS are we talking about?
|
Re: How to Have Double Color Border Elements?
The CMS was custom CMS where we could only select bg and color and so having a double border inside a div means that I could apply CSS styles to outer divs but not the inner ones.
|
| All times are GMT +5.5. The time now is 04:11. |