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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and Server Side Includes

Status
Not open for further replies.

johnacb

Technical User
Apr 13, 2003
48
0
0
AU
I have designed HTKML web Page with a Style sheet attached to use as a navigation page. Running DMX on WinXP

It uses A:link, A: Hover and A:Visit for the navigation menu

I embed the new HTML file into a new page using SSI.

I then setup a Class with new A: links.Link Hover etc and apply these to the links on the new page. To give a different look than the Nav page

The problem is that the Include file CSS overides the all new A: links I have set up on the new page.

Is there any way around this??

I have tried various ways around this but no joy and has become very frustrating

Thanks

johnny



 
basically the later a style is defined on the page it will define the style in use,
ie:
inline styles
<span style=&quot;font-size: 12pt;&quot;>
will override on page styles

<style type=&quot;text/css&quot;>
.class {font-size: 12pt;}
</style>
which will override external style sheets

<LINK rel=&quot;stylesheet&quot; href=&quot;external.css&quot; type=&quot;text/css&quot;>

.class {
font-size: 12pt;
}

there is also a correct order for the <a> pseudo classes
a.class:link { }
a.class:visited { }
a.class:active { }
a.class:hover { }

in your case the included file and style sheet will become the overriding factor.




Chris.

Indifference will be the downfall of mankind, but who cares?
 
Thanks Chris

Will check out my syntax. Maybe that is problem

I had already put the class in after the Include file, but it the Included file still displayed its Style Sheet values.

But I did not use the span, can you use the a:link etc in the Span OK

Thanks again
 
I just used the <span> as a example.
<a style=&quot;font-size: 12pt;&quot;> etc works as well




Chris.

Indifference will be the downfall of mankind, but who cares?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top