Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Link to exteral CSS

can you do it in the body

8:19 pm on Oct 20, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 29, 2003
votes: 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.

9:23 pm on Oct 20, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 21, 2008
posts: 55
votes: 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]