Welcome to WebmasterWorld Guest from 50.16.24.12

Forum Moderators: not2easy

Link to exteral CSS

can you do it in the body

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

10+ Year Member



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)

5+ Year Member



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]

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month