Can someone help me add a css rule to my web template? I want to change the width of it?? It is wider than the normal size template so it runs off the page. How do I make it skinnier?

Recommended Answers

All 2 Replies

Use relative values such as % for width and height rather than fixed pixel values.

What will said
Current best practice is % and em, the derivation of % is obvious, the em is width of the M in the user's set basefont
both scale to window size, and user preference
a div 25% wide is 25% wide on a widescreen monitor and a handheld device and everything in between
scaling elements and fonts in ems and % allows the user preferences to set the basefont of the page and that means the page in 99% accessible to people of impaired vision, too easy

If you must live in the 90s and set pixel widths, set the border or margin, and let the body fill the rest of the screen

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.