CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 22nd, 2002, 11:45 AM
MikeeX MikeeX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Bako, CA
Posts: 42 MikeeX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
CSS and Tables

I have this CSS code that works perfect, BUT if I want to put it within a table Cell, it screws it all up. Maybe someone can give me some input!! Here is the code:

CSS CODE
__________

div.tabBox {}

div.tabArea {
font-size: 80%;
font-weight: bold;
}
a.tab {
background-color: white;
border: 1px solid #183cad;
border-bottom-width: 0px;
padding: 2px 1em 2px 1em;
text-decoration: none;
}
a.tab, a.tab:visited {
color: #183cad;
}
a.tab:hover {
background-color: white;
color: #183cad;
}
a.tab.activeTab, a.tab.activeTab:hover, a.tab.activeTab:visited {
background-color: white;
color: #183cad;
}
div.tabMain {
background-color: white;
border: 1px solid #183cad;
padding: 1em;
}


HTML CODE
_____________

<div class="tabArea">
<a class="tab" href="link.htm">Link</a>
<a class="tab" href="link.htm">Link</a>
<a class="tab" href="link.htm">Link</a>
<a class="tab" href="link.htm">Link</a>
</div>


Thanks again for the help!

Reply With Quote
  #2  
Old February 22nd, 2002, 03:12 PM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 13
The problem is that for some reason, the table cuts off some of the DIV's area, which removes the borders. I'm not sure of how to do a 'real' fix, but this simple little work around turns out ok.

<TABLE><TR><TD height=100>
<DIV class="tabArea">
&nbsp;<BR>
<A class="tab" href="link.htm">Link</a>
<A class="tab" href="link.htm">Link</a>
<A class="tab" href="link.htm">Link</a>
<A class="tab" href="link.htm">Link</a>
</DIV>
</TD></TR></TABLE>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS and Tables

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap