This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Webmaster forum > July 2005 > CSS Problems





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CSS Problems
PulsarSL@gmail.com

2005-07-29, 4:16 am

Hey,

I've got a main PHP page called index.php.

Depending on what comes after ?content= in the url index.php?content=,
it uses include() to include a page. On each individual content page,
I've got some CSS includes.

I also have a css include on index.php for the menu, default content
formatting, etc.

But my problem comes from the content pages CSS. It seems as though
the CSS for index.php is overriding the CSS for the content page...

Should it be? Can I fix it?

Thanks,
iwp506@XXXXXXXXXX

PulsarSL@gmail.com

2005-07-29, 4:16 am

Nevermind, I've just realized I'm a complete idiot and my problems were
stemming from a different unrelated place.

But still, which has precidence?

CJM

2005-07-29, 7:24 pm


<PulsarSL@XXXXXXXXXX> wrote in message
news:1122611821.674386.257180@o13g2000cwo.googlegroups.com...
> Nevermind, I've just realized I'm a complete idiot and my problems were
> stemming from a different unrelated place.
>
> But still, which has precidence?
>


AFAIK, if several external CSS files are linked in and they have conflicting
styling, the last one linked has precedence.

These can all be over-ridden by styling in the header, and these in turn are
over-ridden by any in-line styling...

Not sure how deprecated styling tags compete with CSS (eg FONT tags etc)


Chris


William Tasso

2005-07-29, 11:22 pm

Writing in news:alt.www.webmaster
From the safety of the http://groups.google.com cafeteria
<PulsarSL@XXXXXXXXXX> said:

> ...
> which has precidence?


http://www.w3.org/TR/CSS21/cascade.html

--
William Tasso

** Business as usual
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews