I was wondering if I can specify any CSS media types in the style attribute? and what can I specify in the style attribute?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not that I know of. Your best bet is to define a
classrather than inline styles. Then, you’ll have more flexibility.You can include different stylesheets by specifying the
mediaattribute on yourlinktag to include a stylesheet, or you can also specify that rules within a stylesheet should only apply to a given media.For example:
Including a CSS file by specifying a media:
Specifying a media within a stylesheet:
Also, see the W3C media type list for all your options.