Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A basic questions about Cascading Styel Sheets

Status
Not open for further replies.

danielh68

Technical User
Joined
Jul 31, 2001
Messages
431
Location
US
Hi,

1. Can I have more than .css per website or page?

2. If so, how do you import it or create it?

3. Can I create two different versions of a redefined HTML tag? (for instance, one tag could be a table with a border and the other without)

Any insight on this matter will be a great help.

Thanks,
DanH
 
1.YES
2.windows>CSS add a new one..either for current document or save to disk
3.no you can only have one per...but how i make it is i use two different css styles..ie table_border_yes and table_border_no...then the tables i want borders on i use that style and vise versa

[afro] "blah blah blah blah blah..."-Dennis Quaid
 
Thanks for the input. I really appreciate it. I'm still having a problem, though. Perhaps, I can list exactly what I do and you can point out what I'm doing wrong:

1.In the CSS Styles palette, I click the "New Style" icon and name it "Style 1".

2.I repeat the process and name the next .css "Style 2"

3.I edit "Style 1" (clicking edit style sheet). The edit style sheet window is open (displaying both Style 1 and 2). I select Style 1, click New, Select Redefine HTML Tag, Select "Table", Choose "green" for a background color. Then, I click "Save", "Done" and I'm back at my working area.

4. I repeat the same process for Style 2, except I choose Blue for a Table background color.

Now, when I do this, generally one style over-rides the other. First of all, I don't see the Style 1 or Style 2 present in the CSS Styles Window. I see the attributes of one of the Styles (such a particular font style, etc.), but not the whole CSS. Only, when I click on Edit Styles do I see both Styles in the Edit Style Sheet window. But in that window it doesn't have an Apply option, just Link, New and Edit. So, I'm still confused how one applies a whole new style to an area.

Advice thanks for your help...or anyone's help.

Best Regards,
DanH
 
dont redifine html tag....makea new css for "this document only" for both styles...then depending on table you want format as such...as for table color you dont need css to color tabe you can just code it in your self using properties. Use css to add an image as background for tables. "blah blah blah blah blah..."-Dennis Quaid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top