homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Link to exteral CSS
can you do it in the body
Sarah Atkinson

10+ Year Member

Msg#: 3769906 posted 8:19 pm on Oct 20, 2008 (gmt 0)

Can you link to external CSS in the body and not int he header.

I want to use php to include different pieces of stuff and each piece of stuff has it's own external CSS. so can I just put the link to css in the stuff or will I need to separated it in to stuff and CSS link. I'd just like to do one line instead of 2.



5+ Year Member

Msg#: 3769906 posted 9:23 pm on Oct 20, 2008 (gmt 0)

My first instinct was to say NOOOOO! lol, but I actually tested it on a HTML page and it seemed to work just fine. I moved my entire syle sheet link <link href="style.css" rel="stylesheet" title="Style Sheet" type="text/css"> just believe the <body> tag and when I called up the page... there it was looking fine. I tested in IE and firefox.

Now, I don't know how it would work with your idea or what kind of problems this might present to other browsers (or even 'behind the scenes' issues) but it looked okay on the surface, at least with a HTML page.

You might also want to check out this topic which discussed your same issue here:

[edited by: MizzBia at 9:25 pm (utc) on Oct. 20, 2008]

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved