HighDots Forums  

Re: Different Style Sheets in different tables

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: Different Style Sheets in different tables in the Macromedia Dreamweaver forum.



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

Default Re: Different Style Sheets in different tables - 11-10-2004 , 01:47 AM






guys what happen, you can't explain me little more. I need urgent help.

Reply With Quote
  #2  
Old   
Gary White
 
Posts: n/a

Default Re: Different Style Sheets in different tables - 11-10-2004 , 08:36 AM






ashras wrote:

Quote:
guys what happen, you can't explain me little more. I need urgent help.

Try this to get a feel for how it's done:

1. Create a new page in Dreamweaver.
2. Click Text->CSS Styles->New
3. In the dialog, choose the "Class (can apply to any tag)" radio button
4. In the Name block type ".table1" without the quote marks.
5. Choose Define in This document only.
6. In the next dialog, choose the Background category
6. Select a background color of Red
7. Click OK.

Now, repeat steps 2-7, except this time, name it ".table2" and choose a
blue background color.

In your document, click Insert->Table. For purposes of this example, it
makes no difference what properties you choose in the Insert Table
dialog. Next, insert another table. Again, it makes no difference what
properties you choose in the dialog.

Click anywhere inside the first table.
Look at the status bar of the document window. At the left side of it is
the Quick Tag Selector. It should be displaying this:

<body> <table> <tr> <td>

Right-click on the <table> tag and in the context menu, click Set Class
and choose table1 from the sub-menu.

Click anywhere inside the second table. Right click on the <table> tag
in the Quick Tag Selector, and choose table2 from the Set Class
sub-menu. You're DONE!


Gary


Reply With Quote
  #3  
Old   
ashras
 
Posts: n/a

Default Re: Different Style Sheets in different tables - 11-10-2004 , 12:21 PM



Thanks for this winderful explanation but when i add the hover in table 2 then
again everything messes. Please see the attached document with CSS, so you can
see what i have done wrong. http://www.mbcindia.com/tables.zip


Reply With Quote
  #4  
Old   
Gary White
 
Posts: n/a

Default Re: Different Style Sheets in different tables - 11-10-2004 , 03:02 PM



ashras wrote:

Quote:
Thanks for this winderful explanation but when i add the hover in table 2 then
again everything messes. Please see the attached document with CSS, so you can
see what i have done wrong. http://www.mbcindia.com/tables.zip

Put it all in ONE .css file like this:

..table1 a:link {
color: #000000;
text-decoration: none;
}
..table1 a:visited {
color: #000000;
text-decoration: none;
}
..table1 a:hover {
color: #3366FF;
text-decoration: underline;
}
..table1 a:active {
color: #000000;
text-decoration: none;
}
..table2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
text-decoration: none;
}
..table2 a:link {
color: #000000;
text-decoration: none;
}
..table2 a:visited {
color: #FFFFFF;
text-decoration: none;
}
..table2 a:hover {
color: #FF0000;
text-decoration: underline;
}


Gary


Reply With Quote
  #5  
Old   
ashras
 
Posts: n/a

Default Re: Different Style Sheets in different tables - 11-10-2004 , 11:47 PM



Thanks problem solved.

Reply With Quote
  #6  
Old   
Gary White
 
Posts: n/a

Default Re: Different Style Sheets in different tables - 11-11-2004 , 09:14 AM



ashras wrote:

Quote:
Thanks problem solved.

You're welcome.


Gary


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.