Forum Moderators: open
I am just wondering if there is a code that I can put in my HTML so that the screen size on which my website is shown is detected ?
I have looked at my website on a big flat screen tv an it looks fairely small unless I do ++ to make it bigger, it would be nice if it could fit the screen nicely right away.
Thank you,
CSS is for presentation
[w3.org...]
7.3 Recognized media typesA CSS media type names a set of CSS properties. A user agent that claims to support a media type by name must implement all of the properties that apply to that media type.
The names chosen for CSS media types reflect target devices for which the relevant properties make sense. In the following list of CSS media types, the parenthetical descriptions are not normative. They only give a sense of what device the media type is meant to refer to.
all
Suitable for all devices.
<snip/>
projection
Intended for projected presentations, for example projectors or print to transparencies. Please consult the section on paged media for information about formatting issues that are specific to paged media.
screen
Intended primarily for color computer screens.
<snip/>
tv
Intended for television-type devices (low resolution, color, limited-scrollability screens, sound available).