CSS media types

Archive for April, 2006

CSS media types

A great thing about style-sheets is that you can specify how a document should look for different media types i.e. on a screen or when printed. The reason for this is that certain font sizes and fonts will be more suitable to certain media types.

You specify the CSS media type in the head section in the link to the css file:

style type="text/css" media="screen">
@import url( http://www.flickaswitch.com/style.css );

The type of media specified above is for screen.

You can use anyone of the following media types:

all
Suitable for all devices.
aural
Intended for speech synthesizers.
braille
Intended for braille tactile feedback devices.
embossed
Intended for paged braille printers.
handheld
Intended for handheld devices (typically small
screen, monochrome, limited bandwidth).
print
Intended for paged, opaque material and for documents viewed on
screen in print preview mode.
projection
Intended for projected presentations, for
example projectors or print to transparencies.
screen
Intended primarily for color computer screens.
tty
Intended for media using a fixed-pitch character grid, such as
teletypes, terminals, or portable devices with limited display
capabilities.
tv
Intended for television-type devices (low
resolution, color, limited-scrollability screens, sound available).

CSS2 defines the following media groups:

* continuous or paged. “Both” means that the property in question applies to both media groups.
* visual, aural, or tactile.
* grid (for character grid devices), or bitmap. “Both” means that the property in question applies to both media groups.
* interactive (for devices that allow user interaction), or static (for those that don’t). “Both” means that the property in question applies to both media groups.
* all (includes all media types)

Comments

Mobile device web design

Designing for mobile devices

As more Internet users go mobile, web designers have to start designing for a new standard of web devices. Luckily if your site has been designed with accessibility in mind it already might accessible to both screen readers as well as mobile devices.

The use of valid XHTML and CSS design will mean that when user have photos turned of and are just browsing text, the text will be logically presented and easy to read on a tiny screen

Here are some points to consider:

  1. Screen size

    Mobile devices vary in screen size from very small to 640X480 such as a PSP. PDAs and cell phone screens are smaller than desktops and they also render the pages differently. A sampling of resolutions:

    PalmOS (Zire and Tungsten)
    160×160
    320×320
    320×480

    Blackberry 7100x series
    240×260

    Blackberry 7780
    240×240

    Dell Axim x30 and x50 Pocket PCs
    320×240

    Dell Axim x50v
    640×480

    HP iPaq
    240×320

    Smartphones (Motorola, Samsung, and i-mate)
    220×176

    So instead of just designing for 800X600 you may have to take into account over 10 screen sizes.

  2. Design with CSS, XML, XHTML

    Most devices have the fewest issues viewing Web sites coded with XML/XHTML, the most common HTML standard. It’s not necessary to build a separate site when developing with CSS and XHTML. However, some large sites like Yahoo! and Google have separate sites for mobile users.

    Depending on your audience and Web site’s purpose, creating a separate Web page for mobile devices might be worth considering. If you don’t have the resources or design for a small business, CSS and HTML works fine.

  3. Focus on the most important pages of a Web site

    Generally, mobile users view only a couple of pages per site, just enough to get the information they need and move on. It’s time consuming and tedious to surf with a small screen, so make sure your site is logically ordered with your main text near the top of the page.

  4. Text entry is difficult

    Not all mobile devices come with a QWERTY or any kind of keyboard. Many cell phones rely on T9 Predictive Text Input for text entry. Though it speeds text entry, it’s still tiresome to repeatedly press buttons when entering more than a few words. Give the user choices that allow moving and selecting using the cell phone’s buttons much like the Web pages of the Internet’s early days when everything was text-based. Users just used the arrow buttons to move to an underlined link and then press “Enter” to go to that content.

  5. Test with an emulator

    A few sites offer an on-line emulator or one for downloading. An emulator allows you to view a Web site just like it would appear on a cell phone or whatever device the emulator covers. Available emulators:

Check out Mozilla.org ’s current project Minimo Project (Mini Mozilla), a browser for small devices and machines with limited resources. Opera’s browser comes with the ability to render its browser for small screen and handheld style sheet testing. It also has a section on how to design and write for small devices. Microsoft provides an SDKs (software development kit) for Windows Mobile as well as articles and emulators. Check out the style guides:

Statistics show a growing market for mobile devices, which leads to more interest in Web sites specially designed for such devices, or at least, use CSS and XHTML or XML. These tips and resources will help designers maximize the small screen surfing experience.

Image Size

Because of the high cost of bandwidth most mobile users will browse with images turned off. If they leave images on the slow connection speed of gprs means any images you include should be fully optimised and cropped to a size that will display on a screen with very limited real estate.

Comments

Brighton

Bank Holiday Monday about 45 of us took a trip down to Brighton. Special discounted rate on the train meant we only paid £8,70 return which was sweet. The beach was made of little rock and it was freezing but it was still cool cause it was the sea. Not a ridable wave in sight though.

being the gay capital of the UK brighton wasnt very gay although i could help singing under my breath “I wanna take u to a Gay bar, gay bar, gay bar”

Some very cool shops and the biggest extreme pie shop with loads a discounted snowboard equipment which made me really want to go snowboarding.

pics courtesy of Warren and Emile. shot!



























Comments

Placebo AllyPally

Went to see Placebo at ALLyPally. I walked down from work and got a bit lost so i asked a man for directions and he wanted to know if i was going to see an exhibition. Since when do i look like the exhibition frequenting type? Any found it eventually and spent a very cold but informative hour waiting outside for everyone else listening to the touts go about there work.

Supported by white rose moment who where pretty good placebo were very cool. Sound was spot on and their excellent set was top off by the final song “Nancy Boy”

Pics below:}






































Comments

Easta Fri Session

Us boys out in the dodge area of westbourne park found this sweet little spot. Consisting of a small halfpipe leading down into two bowls complete with copings all round and a deep end sign. Some sick graph as well.

Pics below. Enjoi.

null

null

null

null

null

null

null

null

null

null

null

null

null

null

null

null

null

null

null

Comments (3)

« Previous entries ·