ted_chou12 Posted December 31, 2006 Share Posted December 31, 2006 I want to import the content of another page without the css styles of the current page, such as the a href and hoover that are set already, because the layout of the page i want to import uses no css but only html tags.ThanksTed Quote Link to comment Share on other sites More sharing options...
AndyB Posted December 31, 2006 Share Posted December 31, 2006 Do you mean in[b]clude[/b] another page? Quote Link to comment Share on other sites More sharing options...
Jtech Posted December 31, 2006 Share Posted December 31, 2006 Put all ur css code in a style sheet an assign it to a page .so u wont have an css code on any page, but it will have the same affect cause it was assigned to a stylesheet with the css code in it.Heres a lil about css style sheets ..if u dont know what they are ####################################################Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in your Web, just by editing one single CSS document!####################################################an here is the code ####################################################<link rel="stylesheet" type="text/css" href="/external.css" />#################################################### Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted January 1, 2007 Author Share Posted January 1, 2007 oh, sorry for any misunderstanding, I do have my css scipt as one separate file, I will give an example:My css page customizes the href links so they dont look tradition(traditional dark blue) so that all of my links look green. I want to keep that, but there are parts of the page, for example, a table, which i dont want it to modify, I want the links of that table to look tradition(dark blue) and not green. Because I have a lot of links in that table, so what I thought would be easy is to pause the css styles layout and countinue it after the table, is that possible?ThanksTed Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 1, 2007 Share Posted January 1, 2007 Give your other anchors a class/id rather than styling all the anchor tags. You cannot "pause" a stylesheet! Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted January 1, 2007 Author Share Posted January 1, 2007 vy anchors do you mean add an id, span class or something like that?Thanks Ted Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 1, 2007 Share Posted January 1, 2007 Example:HTML:[code]<A href="blah.com/blah" class="myLink">link</a>[/code]CSS:[code]a.myLink { style for achor}[/code] Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted January 3, 2007 Share Posted January 3, 2007 you can do this using the cascade.if you want all your links in your navigation to be green and these links are inside a div with id="nav" then simply use:[code]div#nav a{ color: green;}[/code]this will ensure only those anchors in the div with that id will take on the style. Then your table can be in another div that is NOT a child of div#nav will not take on those style properties. Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted January 5, 2007 Author Share Posted January 5, 2007 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.