
Solid, safe website tools.
Whatever your need, Will Bontrager builds powerful software solutions.
|
(Get Attention Ticker for your web site)
How To Keep a Style Tag From Spilling Onto the Entire PageBy Will Bontrager When a <style...> tag is used on a web page, the definitions apply to the entire page unless the style is defined to apply only to elements with certain IDs. Putting a <style...> tag within a <div...> tag does not restrict the style to the content in that div. When I made yesterday's An Unusual But Not Gaudy Link Hover Effect blog entry, I wanted the example of the style in action to be on a page separate from where the entry would be published at. This way, I didn't have to mess with the master style sheet, nor have to remember about the style should the blog entry be published on other domains of ours. It was accomplished with an <iframe...> tag. The example, with its own <style...> tag, was published on its own web page. Then the <iframe...> tag was used to display the web page. Information about the <iframe...> tag can be found here. The tag is useful to have in ones repertoire. July 15, 2005 Please note: Articles on this website are presented "as is". However - If you have a question about a CGI script, HTML, CSS, PHP, or JavaScript
Rate this blog post.
No page reload! |
|
|
© 1998-2001 William and Mari Bontrager |
|