PDA

View Full Version : CSS Help Styling Divs


Dj Smuggla
04-29-2011, 06:18 PM
Im tring to make a custom page for vbulletin, but im having trouble styling the div containers.

http://s2.imgkeep.com/i/00009/pz6kupwsdr50.png

See the colored boxes, i want them to look like this:

https://vborg.vbsupport.ru/

Here's my code: (Code Removed)

I've added the background image at the top of the box to the div, thats ok
but then how do i add a alt image inside the box? Below that image?

And a separate little box around the date posted?

http://s2.imgkeep.com/i/00009/ate5z3gcvxwh.png

Lynne
04-29-2011, 11:06 PM
How about a link to see the results of the code you've posted.

Dj Smuggla
04-30-2011, 12:55 PM
Here's a link to the page:
http://www.hiphopdownloadz.com/music.php

I just need to know how to split each box into sections, so i can use tcat for the top of the box, & alt for the rest of it. Right now when i add the tcat image to the css for the box, i then cant add another image for below it.

Lynne
04-30-2011, 04:15 PM
I'm not sure exactly what you want. Something like...
<div class="first">
<div class="title">N.O.R.E.</div>
<div class="date">Posted: 04-29-2011>
<div class="image_background">N.O.
<img scr="download.jpg" alt="" />
</div>

</div>

Dj Smuggla
04-30-2011, 08:30 PM
Thanks for helping me, but this is the result from what you give me:

http://s2.imgkeep.com/i/00009/60j2ls4c4kwv.png

See its all squashed up the top.

What do i need to add to the <div class="title"><div class="date"><div class="image_background"> CSS to make it display how i want it like this:

http://s2.imgkeep.com/i/00009/9yyc917ij9fv.png

Basically how do i tell it to show the top image (with green line) behind the title, then i want to use the alt1 for the date (just underneth) then alt2 for the rest of the box.

Lynne
04-30-2011, 10:12 PM
I just posted class names in there. You will have to make them the font-size and color you want and also put in any padding and then the background image. I don't know any of those details - only you do.

Dj Smuggla
05-01-2011, 08:05 PM
Thanks a lot Lynne, ive managed to make them display how i wanted them now.