CSS tabs

This is a discussion on "CSS tabs" within the Web Page Design section. This forum, and the thread "CSS tabs are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 16th, 2005, 15:46
New Member
Join Date: Aug 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
CSS tabs

Hi I am looking at changing some example css tabs I found on the web.




I want the foremost tab not to have a line underneath it. The tab itself only has borders top right and left. Not bottom. The bottom line is (bear with me) the top of the main area below.

I had the idea of enlarging the tab slightly in height (but so the top stays still and the bottom bit of the tab moves down). Then setting the z index value to higher than that of the main area; whilst also keeping the main area in the same place so the tab is slightly overlayed and in just the area where the tab is the main areas top border is dissapeared so you get the affect I want.

Sorry for how confusing that is but I'm just typing whilst thinking i'm sure i'll read this back in a minute and find it makes no sense!


Any ideas what exactly I have to change in my css? And if it's possible to get the main area to stay still whilst moving the tab down slightly.

http://www.cwprint.co.uk/Pic/cwsite.css/



Thanks in advance


titaniumbean.
Reply With Quote

  #2 (permalink)  
Old Aug 17th, 2005, 07:57
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
can you post a gif or jpg instead, a tiff wont display!

sounds to me like you need border-bottom:0px; on the selected tab
Reply With Quote
  #3 (permalink)  
Old Aug 17th, 2005, 08:15
New Member
Join Date: Aug 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Link is below.

http://www.cwprint.co.uk/Pic/linksquestion.jpg/


There is no border specified for the foremost tab. I need a way of getting rid of a chunk of the top part of the border round the main section. But I only want to get rid of the part where the foremost tab is so it looks like a proper filing system.


Any ideas?



titaniumbean.
Reply With Quote
  #4 (permalink)  
Old Aug 17th, 2005, 09:38
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Hi

I think your Z-index idea is a good one by just making the foremost tab above and a little bigger to cover the main border. To use Z-index you will need to use absolute positioning, which might cause a problem with the cross-browser position. . but then again it might not.

You can cover it without using Z-index and by adjusting the position/padding/margins to ofset it. Needs some experiment

Another idea could be to add a bottom-border to the formost tab, the same as the background colour and with a 3px size. This might cover it, but unsure without trying.

Reply With Quote
  #5 (permalink)  
Old Aug 17th, 2005, 09:49
New Member
Join Date: Aug 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
That there is a very good idea. Will start fiddling with a large bottom border. Back in a mo.



[EDIT]
The problem with this idea is that when you increase the bottom border size the main body area below which I want to overlap to moves down aswell. As it's relatively positioned.

Any ideas.

[/EDIT]


toodles


titaniumbean.
Reply With Quote
  #6 (permalink)  
Old Aug 18th, 2005, 09:50
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
How about removing the top border from the main area. Then use background images on the tabs somehow.

.... or I just thought.

If you place all the TABs inside an absolute layer- so it is just over the main content. Then you can adjust the tabs, add a big border or whatever and it wont push the main content down?

LET me know how it goes dude
Reply With Quote
Reply

Tags
css, tabs

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] tabs with CSS CloudedVision Web Page Design 3 Mar 23rd, 2008 02:17
staggered tabs in IE7 WebMachine Starting Out 4 Oct 1st, 2007 10:21
jquery tabs prob karloff JavaScript Forum 0 Jul 4th, 2007 21:21
Tabs on my webpage pengyou Starting Out 5 May 23rd, 2007 20:52
[SOLVED] Disable Button while using Tabs Anonymous User JavaScript Forum 1 Sep 14th, 2004 09:12


All times are GMT. The time now is 02:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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