Limits to inline CSS?

P

Paul Goodwin

I'd like to use stylesheets for eBay auctions, obviously I have no access to
the 'head' section so I can't use an external stylesheet or put the CSS
there, so I'm wondering if there's any limits to what I can do using inline
styles, or is there a way to link to an external stylesheet without putting
it in the head?

Thanks
 
B

brucie

I'd like to use stylesheets for eBay auctions, obviously I have no access to
the 'head' section so I can't use an external stylesheet or put the CSS
there, so I'm wondering if there's any limits to what I can do using inline
styles,

hard to say. attribute values were limited to 1024 characters but
html4 changed it to 65536 (max SGML size) and:

"These are the largest values permitted in the declaration Avoid fixed
limits in actual implementations of HTML UA's"

so it depends on what the UA wants to do.

http://www.w3.org/TR/html4/sgml/sgmldecl.html
or is there a way to link to an external stylesheet without putting
it in the head?

stick the <link> in as the first line of the <body>. works with IE6,
moz1.5 and opera3.6+
 
P

Paul Goodwin

brucie said:
so it depends on what the UA wants to do.

http://www.w3.org/TR/html4/sgml/sgmldecl.html

Thanks for the link. I have no idea what any of it means, but there's little
I enjoy these days more than learnin' ;-)


stick the <link> in as the first line of the <body>. works with IE6,
moz1.5 and opera3.6+

Unfortunately, having looked at the unbelievable mess of code soup that is
the average eBay auction, I can't get anywhere near the first line of
<body>, the nearest I could get would be more than 2/3rds down the page.
 
B

brucie

Unfortunately, having looked at the unbelievable mess of code soup that is
the average eBay auction, I can't get anywhere near the first line of
<body>, the nearest I could get would be more than 2/3rds down the page.

give it a go anyway and see if the browsers can work it out.
 
T

Toby A Inkster

Paul said:
Unfortunately, having looked at the unbelievable mess of code soup that is
the average eBay auction, I can't get anywhere near the first line of
<body>, the nearest I could get would be more than 2/3rds down the page.

Technically you could use a scoped stylesheet like:

<div style="@import url(http://example.org/mystyle.css);">
<!-- your stuff goes here -->
</div>

Although I've never heard of any browsers supporting it.
 
D

Denise Enck

brucie said:
give it a go anyway and see if the browsers can work it out.

That's what I did on my eBay "about me" page - I just stuck the <link> in
first chance I got, and it works okay. eBay pages are indeed a mess anyway.
I haven't tried in in auctions but why not give it a shot?

cheers ~
Denise
 
P

Paul Goodwin

Denise Enck said:
That's what I did on my eBay "about me" page - I just stuck the <link> in
first chance I got, and it works okay. eBay pages are indeed a mess anyway.
I haven't tried in in auctions but why not give it a shot?

I will indeed & report back if it works, thanks to all for replying :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,017
Latest member
GreenAcreCBDGummiesReview

Latest Threads

Top