Need some CSS/HTML help to make a cool ribbon affect on my site

Zoracle

New Member
Hi all,

I would love some quick help on how to make this do what I want it to do. I want to make my subscribe button stick out a little bit more with a funny little message on top of a ribbon that wraps around the menu bar.
Here's the way it currently looks:
current.jpg


And this is how I'd like it to look:
ribbon-done.jpg


I'd appreciate any help with this. I'm using a wordpress blog, I'm okay with css and html, so I'll understand what you're saying for the most part I just don't know the quickest and easiest way to implement this.

Thanks,
Zach
 

chrishirst

Well-Known Member
Staff member
With the green "ribbon" image (transparent background) positioned and at the top of the stacking order.
 

Zoracle

New Member
My first attempt

So this is my first attempt. I have to use mostly CSS code because it's wordpress and to change anything within wordpress is a PIA.
rbn-attempt1.JPG


As you can see, my main problems are the Subscribe Box not being able to overflow the background image up into the margins, and a minor issue of the navigation bar ribbon going underneath the rulers.

For the Subscribe Box, I've tried changing z index, messing with padding and margins but still can't get it to overflow.

Here's my code:
Code:
#navigation {
...
background-image: url(image/rbn_02.jpg);
}

#header {
...
background-image: url(image/rbn_01.jpg);
}

#woo_subscribe-2 {
background-image: url(images/rbn_04.png);
background-position-y: 100px;
overflow: visible;
padding-top: 100px;
margin-top: -100px;
z-index: 5;
}

I'd love any advice you could offer, thanks.
 

Ennesus

New Member
Just make 1 elelement like a div with the class ribbon use one background image and position it absolute. Note: the parent container has to be position relative.

Also specify width,height, left and top

You can place a paragraph inside de ribbon for the text
 

Zoracle

New Member
Ennesus, thanks! You rule! That was waaaay easier than what I was trying to do. I've never really messed with relative and absolute positioning. Plus it works ACROSS BROWSERS which is the best!
check it out at www.thetruegeneralist.com

It looks sweet. Thanks again.
Z
 

Phreaddee

Super Moderator
Staff member
yeah one big fat image.
easy, true, but a shame all your text is images. that is poor form.
 
Top