Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CSS tabs with background?

Posted on 2010-11-22
10
Medium Priority
?
256 Views
Last Modified: 2012-05-10
I am converting a PSD to HTML , and am stuck on this part.

The attached menu is comprised of tabs.

I know there are a hundred ways to do this, but I need a little nudge.

How would I take this menu (just the tabs)  ideal result
...and convert it into valid CSS/HTML , when all I have is this...

 blank background

I purchased this template as a PSD and am trying to convert to HTML.

This part has me stumped.

Can anyone show me an example of how I would do this?

I assume, correct me if I am wrong, but I would think we would need to somehow make the corners rounded by slicing the image?

Of course the ideal solution would be something like the attached code, EXCEPT of course, the proper CSS needs to be applied, which is where I NEED YOU - THE EXPERTS!!! lol


<ul>

    <li><a href = "#">Menu Item 1</a></li>
    <li><a href = "#">Menu Item 2</a></li>
    <li><a href = "#">Menu Item 3</a></li>

</ul>

Open in new window

0
Comment
Question by:edvinson
  • 4
  • 3
  • 3
10 Comments
 
LVL 13

Expert Comment

by:qwerty021600
ID: 34194353
u r absolutely right in following <UL> <LI> tags..
do this way and give styling in CSS.
0
 
LVL 3

Expert Comment

by:boraganesh
ID: 34194381
use the blck image as background image to UL
for li : hover or active use the red color image.
make all these things in CSS
for rounded corners use css
0
 
LVL 1

Author Comment

by:edvinson
ID: 34194400
thanks, guys. but what i need is an example, actually a solution!

trust me, it's not for a lack of trying. I have tried.

i only have the images i have provided here, to accomplish my task.

i have googled, i have tried everything. i cannot get it.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Accepted Solution

by:
qwerty021600 earned 2000 total points
ID: 34194406
Download these files..
index.html
menu-style.css
blue.jpg
black.jpg
0
 
LVL 3

Expert Comment

by:boraganesh
ID: 34194411
0
 
LVL 3

Expert Comment

by:boraganesh
ID: 34194416
0
 
LVL 1

Author Comment

by:edvinson
ID: 34194441
Qwerty, I downloaded all the files, and only get a black page with a list vertical.

Probably something to do with paths.

Can you zip it? I am running apache.

To the rest, who provided links, again, trust me, I have tried.
0
 
LVL 13

Expert Comment

by:qwerty021600
ID: 34194447
i did that bt unable to upload zip as it is not supported.
U plz change the path.. It'll work fine..
0
 
LVL 1

Author Closing Comment

by:edvinson
ID: 34194450
Close enough! Thanks
0
 
LVL 13

Expert Comment

by:qwerty021600
ID: 34194458
Welcome !!
And thanks for the points.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question