Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 01-18-2009, 08:53 PM   #1 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 165
OS: Linux Mint


Tabs in CSS?

Hello all.
I'm having some trouble in CSS. I'm trying to make tabs on top of a webpage, and was told to make each tab a Div. So I did that, and they end up getting stacked up on eachother.


Heres the code for my tabs:
Code:
#tabs
{
backgound-color: white;
height: 20px;
width: 950px;
margin-left: auto;
margin-right: auto;
}

#tab1
{
text-aline: left;
backgound-color: white;
height: 0px;
width: 95px;
padding-left: 20px;
}

#tab2
{
text-aline: left;
backgound-color: white;
height: 0px;
width: 95px;
padding-left: 115px;
}

#tab3
{
text-aline: left;
backgound-color: white;
height: 0px;
width: 95px;
padding-left: 230px;
}

#tab4
{
text-aline: left;
backgound-color: white;
height: 0px;
width: 95px;
padding-left: 345px;
}

#tab5
{
text-aline: left;
backgound-color: white;
height: 0px;
width: 95px;
padding-left: 560px;
}
I wrote the tab divs in that one big dive, but its still not working.

Any help plz?
Thanks.
__________________
bLUE445
Blue445 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-18-2009, 09:38 PM   #2 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,463
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Tabs in CSS?

If the navbar is working as planned, aside from this little problem, just add {display: inline} under div in the CSS.

Please keep in mind that spelling does count for all kinds of programming.

If not: we can create the navbar from a list of items. We just have to do some basic CSS tweaks to make it display the way we want.

This site should give you the basic idea: http://www.456bereastreet.com/archiv...avigation_bar/
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-19-2009, 10:34 PM   #3 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 165
OS: Linux Mint


Re: Tabs in CSS?

Cool man, thanks. It works now.
__________________
bLUE445
Blue445 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-19-2009, 11:12 PM   #4 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 165
OS: Linux Mint


Re: Tabs in CSS?

Quick thing, i have a image of tabs, and would like to put that behind my actual tabs. Could you help?
__________________
bLUE445
Blue445 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-20-2009, 08:37 AM   #5 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,463
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Tabs in CSS?

Just add {background-image: url(relative_url_of_image)} to div.
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-20-2009, 12:31 PM   #6 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 165
OS: Linux Mint


Re: Tabs in CSS?

No matter what i do, it refuses to show.
__________________
bLUE445
Blue445 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-20-2009, 04:30 PM   #7 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,463
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Tabs in CSS?

Sorry, that should be background, not background-image. I was thinking of something else at the time and it screwed me up.
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-20-2009, 07:59 PM   #8 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 165
OS: Linux Mint


Re: Tabs in CSS?

Gah, its still not showing up :(
__________________
bLUE445
Blue445 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-21-2009, 03:00 PM   #9 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,463
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Tabs in CSS?

Are you using a relative URL or a complete URL? The relative URL begins in the FTP upload folder, and continues from that point. If you put the site address, it stuffs up.
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-21-2009, 04:04 PM   #10 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 165
OS: Linux Mint


Re: Tabs in CSS?

Well, I'm using a local image. Lets say I had two folders.
-Website
-CSS
-Images

I would type in my css: url(images/header.png)
Correct? The website is one folder, and has two separate folders, the css and another the images.
__________________
bLUE445
Blue445 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-21-2009, 05:02 PM   #11 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,463
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Tabs in CSS?

All right, I've got myself all tied up in knots. Let me try to debug this for you.

Code:
background: #FFFFFF url(../images/header.png) no-repeat center;
This will set the background image to a images/header.png, non-repeating, and centred. If images/header.png is unavailable, a white background is displayed (#FFFFFF is the hexadecimal equivalent of white. Browsers like hexadecimal best, followed by rgb, and then the English colour names).

I'm sorry for any confusion and inconvenience that may have resulted from my screwing up.
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-21-2009, 05:45 PM   #12 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 165
OS: Linux Mint


Re: Tabs in CSS?

It still being silly and not showing up

Heres the small HTML gallary
Code:
<!--TABS SECTION-->
<div id="tabs">
	
<ul id="nav">
	<li id="nav-home"><a href="#">Home</a></li>
	<li id="nav-about"><a href="#">Services</a></li>
	<li id="nav-archive"><a href="#">Gallery</a></li>
	<li id="nav-lab"><a href="#">About Us</a></li>
	<li id="nav-reviews"><a href="#">Contact Us</a></li>
   </ul>
</div>
And the CSS:

Code:
#tabs
{
width: 950px;
height: 26px;
margin-left: auto;
margin-right: auto;
background: #FFFFFF url(../images/header.png) no-repeat center;
}
__________________
bLUE445
Blue445 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-21-2009, 06:19 PM   #13 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,463
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Tabs in CSS?

How about a little test. Replace the #FFFFFF with #0600FF and see if there is a difference. If there is, check the URL. If there isn't, check your speling.
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-21-2009, 07:49 PM   #14 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 165
OS: Linux Mint


Re: Tabs in CSS?

I got it. Thanks man. :)

Cheers
__________________
bLUE445
Blue445 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 02:02 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85