HighDots Forums  

Re: CSS cell padding

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: CSS cell padding in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
James Shook
 
Posts: n/a

Default Re: CSS cell padding - 11-10-2004 , 06:33 PM






J Williams wrote:

Here's another way to go:

Quote:
style type="text/css"
!--
td.lnavhead {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
padding: 4px;
font-weight: bold;
color: #000000;
background-color: #99CCFF;
}
td.lnavhead a {
display: block;
text-decoration: none;
}
td.lnavhead a:link {
color: #000000;
}
td.lnavhead a:visited {
color: #000000;
}
td.lnavhead a:hover {
color: #FFFFFF;
background-color: #666666;
}
td.lnavhead a:active {
color: #000000;
}
--
/style
/head
body
table width="200" border="0" cellspacing="0" cellpadding="0" class="lnavhead"
tr
td><a href="#">Linked Item </a></td
/tr
tr
td>Not Linked </td
/tr
/table
/body
/html


--
James M. Shook
http://www.jshook.com


Reply With Quote
  #2  
Old   
J Williams
 
Posts: n/a

Default Re: CSS cell padding - 11-10-2004 , 07:22 PM






Thanks for your reply.

Moving the 'padding: 4px;' from the 'td.lnavhead a' style to 'td.lnavhead'
gives the same padding in both cells, but makes the hover on the Linked Item
not fill the whole cell. I want the hover background colour to fill the
whole cell.

"James Shook" <jshook (AT) dont_mail (DOT) com> wrote

Quote:
J Williams wrote:

Here's another way to go:

style type="text/css"
!--
td.lnavhead {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
padding: 4px;
font-weight: bold;
color: #000000;
background-color: #99CCFF;
}
td.lnavhead a {
display: block;
text-decoration: none;
}
td.lnavhead a:link {
color: #000000;
}
td.lnavhead a:visited {
color: #000000;
}
td.lnavhead a:hover {
color: #FFFFFF;
background-color: #666666;
}
td.lnavhead a:active {
color: #000000;
}
--
/style
/head
body
table width="200" border="0" cellspacing="0" cellpadding="0"
class="lnavhead"
tr
td><a href="#">Linked Item </a></td
/tr
tr
td>Not Linked </td
/tr
/table
/body
/html



--
James M. Shook
http://www.jshook.com



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.