Remote Linking CSS in the <body> area.

This is a discussion on "Remote Linking CSS in the <body> area." within the Web Page Design section. This forum, and the thread "Remote Linking CSS in the <body> area. are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 16th, 2005, 15:56
New Member
Join Date: Jun 2005
Location: The Land of the Free
Age: 19
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Remote Linking CSS in the <body> area.

I am working on a website that forces me to use their program (eznettools.net).

I cannot modify the <head> tag so I can't add CSS. Is there a way to insert a chunk of HTML, JavaScript, or PHP in the body area that will link to a .css file?

I know HTML and CSS, but Javascript and PHP are beyond me.

Thank you very much for reading this.

/Syody
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 16th, 2005, 21:55
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I don't think you *have* to put a css link in the head - try adding it somewhere else... it's merely compliant to put it in the head. Worth a try anyway!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 17th, 2005, 08:04
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
try adding the css inline instead of including a css file, for example:

Code: Select all
<style type="text/css">
.myClass {
      font-family:tahoma;
}
</style>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 17th, 2005, 09:16
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, but that still needs to go in the head, doesn't it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 17th, 2005, 12:13
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
well, yeah, it should do, but it might work in the body...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jun 17th, 2005, 12:18
Junior Member
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
or you could try inline styles - not my favourites
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jun 17th, 2005, 18:07
New Member
Join Date: Jun 2005
Location: The Land of the Free
Age: 19
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Inline Styles: They won't work because I need to modify the body and link properties.

Smokie: I'll give it a try. I've never bothered with standards before; no reason to start now. *Ironic grin*


Tell you how it works.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jun 17th, 2005, 18:14
New Member
Join Date: Jun 2005
Location: The Land of the Free
Age: 19
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Posting the link to the CSS works! Yes! Thank you so much, Smokie.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jun 18th, 2005, 11:08
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,192
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
To be honest.... this would be the standards compliant way:-
Code: Select all
<script language="javascript" type="text/javascript">
document.styleSheets[0].href = 'newstyles.css'
</script>
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jul 21st, 2005, 22:11
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Rob
To be honest.... this would be the standards compliant way:-
Code: Select all
<script language="javascript" type="text/javascript">
document.styleSheets[0].href = 'newstyles.css'
</script>
Whaaaa? Are you sure? I've never seen Javascript used to call a stylesheet, even in the most insanely accessible sites.

It's always something like this: <link rel="stylesheet" type="text/css" href="/StyleSheets/home.css" />

^^ That was taken from W3.org.

Or are you referring to an instance when it's used between the <body></body> tags?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
remote, linking, css, ltbodygt, area

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to remote server/sage using php? MercJones PHP Forum 2 Mar 19th, 2008 12:44
remote access acrikey Starting Out 6 Apr 3rd, 2007 05:01
asp.net installation on remote server dave2006 ASP.NET Forum 1 Feb 16th, 2007 18:46
Remote vs Local ClaireB Classic ASP 9 Sep 9th, 2005 18:56


All times are GMT. The time now is 21:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved