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.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
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
Reply With Quote

  #2 (permalink)  
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!
Reply With Quote
  #3 (permalink)  
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>
Reply With Quote
  #4 (permalink)  
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?
Reply With Quote
  #5 (permalink)  
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...
Reply With Quote
  #6 (permalink)  
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
Reply With Quote
  #7 (permalink)  
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.
Reply With Quote
  #8 (permalink)  
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.
Reply With Quote
  #9 (permalink)  
Old Jun 18th, 2005, 11:08
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,953
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 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>
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #10 (permalink)  
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?
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 13:30.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43