The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Rollover table cell problems
adam
post Mar 19 2007, 05:44 PM
Post #1


Member
***

Group: Members
Posts: 58
Joined: 19-March 07
Member No.: 2,253



Sorry, just a quick question...

I am using css to make a roll-over effect on table cells on my page.

I have inputted the css into my external stylesheet an dhave the table code and it all works. But i just CANT make the text aligned left.

here is the code for the webpage...

CODE
<div class="menu">
<table summary="" cellpadding="1" cellspacing="1" class="menu">
<tr>
<td>
<a href="#" onfocus="this.blur()"> Link 1</a>
</td>
</tr>
</table>
</div>


and here is the code for the stylesheet...

CODE
div.menu a {
color: #ffffff;
background: #333333;
text-decoration: none;
font-size:10px;  
font-family: verdana;
padding: 2px 25px;
}

div.menu a:link {
color: #ffffff;
background: #333333;
text-decoration: none;
}

div.menu a:active {
color: #ffffff;
background: #333333;
text-decoration: none;
}

div.menu a:visited {
color: #ffffff;
background: #333333;
text-decoration: none;
}

div.menu a:hover {
color: #ffffff;
background: #000000;
text-decoration: none;
}
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Pattons3rd
post Mar 19 2007, 05:50 PM
Post #2


Newbie
*

Group: Members
Posts: 13
Joined: 19-March 07
Member No.: 2,250



If you add in this it might help.

CODE

div.menu{
text-align: left;
}
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Mar 19 2007, 05:51 PM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Can you provide the URL (address) of a document that demonstrates the problem?

I can't see that you've done anything to align the text one way or the other.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
adam
post Mar 19 2007, 05:54 PM
Post #4


Member
***

Group: Members
Posts: 58
Joined: 19-March 07
Member No.: 2,253



the url is http://thealmost.underoathfans.net

then the link in the navigation is "media"

I attempted to add

CODE
text-align: left;


to each one in the stylesheet.

I also tryed aligning it through the table like this:

CODE
<td align=left>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Pattons3rd
post Mar 19 2007, 05:59 PM
Post #5


Newbie
*

Group: Members
Posts: 13
Joined: 19-March 07
Member No.: 2,250



It seems like objects that are not links don't respond right to the a:hover or a .
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
adam
post Mar 19 2007, 06:02 PM
Post #6


Member
***

Group: Members
Posts: 58
Joined: 19-March 07
Member No.: 2,253



The text in the cell is a link though. All the classes for the roll-over effect are in the "div" tags at the bottom of the stylesheet.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 10:37 AM