Log in

View Full Version : Possible to do this in CSS?



Luke
23-05-2010, 10:44 AM
Okay, at the moment to make these boxes
http://i49.tinypic.com/30t15vk.png
I have
<container>
<title> (class for title text)
<line> (background image div with the '3 colour line')
<body> (blue bit)

Now, i'm wondering, if it's possible to merge the title and line divs so it would be
<container>
<title>
<body>

But is it possible to have a border-bottom with 3 colours?
If so, how?

Cheers
Luke

LMS16
23-05-2010, 08:51 PM
If you need 3 colours, just put a bottom border on the top div, create a dive with 1px border and no spacing (this will become 2px height, obvs..) and put a top border on the bottom div :)

Hope you understand.

Lew.

today
23-05-2010, 08:53 PM
You could use the title div and have the line has a background set so that'll it expand fully, and then custom the font.

Quickest way top of my head.

MattFr
24-05-2010, 07:27 AM
Just do what you're doing atm. Do the line as a CSS background on a whatever height div though. Loading a 1 x 2 px tile is hardly intensive on the old bandwidth.

Luke
24-05-2010, 01:32 PM
Hmm, think I'll just stick to it with an image then; was just wondering whether it was possible.
And yeh, it's a 1 x 3 picture, wasn't worried about bandwith :L

Want to hide these adverts? Register an account for free!