HighDots Forums  

Inline media styles

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Inline media styles in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
appleboy@gmail.com
 
Posts: n/a

Default Inline media styles - 08-10-2006 , 01:03 PM






Hello to all, and sorry about my poor english

I am trying to assign inline styles thru javascript or directly into
the element parameters. E.j:

<span style="font-size:5em;">

I would like to know if is it possible to assign styles inline but only
for @media print. I cannot use external css file and cannot use
<styles></styles>block. I would like something like that:

<span style="(media screen)font size:5em;(media print):font-size:9em;">

Thanks in advance


Reply With Quote
  #2  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Inline media styles - 08-14-2006 , 09:08 AM







appleboy (AT) gmail (DOT) com wrote:

Quote:
I would like to know if is it possible to assign styles inline but only
for @media print.
No.

Quote:
I cannot use external css file and cannot use
styles></styles>block.
You could probably still use <style ...> ... </style>

Although it's required to place this in the <head> and not the <body>,
in practice if you place it in the <body> then the page will be
invalid, but most browsers will still process the stylesheet correctly.
This is a useful hack! It also works for a:hover {}



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.