homepage Welcome to WebmasterWorld Guest from 54.198.224.121
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

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




msg:3769908
 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.

 

MizzBia




msg:3769941
 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:
[webmasterworld.com...]

[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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved