Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 10th, 2006, 06:55 PM
appleboy@gmail.com
Guest
 
Posts: n/a
Default Inline media styles

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

  #2  
Old August 14th, 2006, 03:05 PM
Andy Dingley
Guest
 
Posts: n/a
Default Re: Inline media styles


appleboy@gmail.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 <headand not the <body>,
in practice if you place it in the <bodythen 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 {}

 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles