Next Designs

10 tips to build robust CSS-driven websites

  1. The !important keyword
    If a style you're implementing is not being expressed, you must ensure that your selector is actually targeting the element of interest. By adding the !important keyword to the end of your rule, you override any competing selector's style rules. If your style isn't expressed, your selector is probably malformed and not selecting your element. Just remember not to leave any !important keywords in production, they're maintenance poison.
  2. Comments are your friends
    If your design falls apart, try to comment out blocks of your markup. If you can determine which element is giving you trouble, you can then start commenting out the style rules which target that element. This kind of sleuthing is invaluable when coming up against display bugs in previous versions of Internet Explorer.
  3. border:1px solid red !important;
    Positioning can be one of the more difficult aspects of CSS-driven designs. By adding the above rule to an element, you can determine how it is placed on a page, its margins, padding, and the margins of surrounding elements. It is sometimes helpful to add the following wildcard declaration to your CSS to see how everything is positioned in relation to each other:
    * { border:1px solid red !important;}
  4. Take advantage of help
    Newsgroups are a great forum to ask CSS questions, as is the css-discuss.org mailing list. I've been know to occasionally lurk around the latter.
  5. Pick up a book... or five
    There's no way around this one. Without a solid grounding in XHTML and CSS, you’re going to have difficulties realizing more advanced designs. Fortunately, there are some great books out there that can help you develop these skills. The books I always have within an arm’s reach are:
  6. Validate! Validate! Validate!
    Use the proper tools to ensure that your markup and CSS validate, or you’ll pages will behave in non-standard ways. If things aren’t working out, visit the following and check your pages and CSS:
  7. Tidy your markup
    Ok, so your markup is a mess. You can use the aforementioned markup validation service to help identify and resolve the issues manually, or you can use HTML Tidy, a great little application developed by Dave Raggett and maintained by the W3C, to do the heavy lifting. You can find out more about HTML Tidy here.
  8. Bug squashing
    So, your site looks great in Firefox, Opera, Safari, and Konqueror, but it falls apart in Internet Explorer. A guide to squashing all of IE’s bugs is beyond a quick tip, but be sure to check out the following sites for help:
  9. Take a breather
    Pounding away at a problem can be frustrating and narrows your focus. Step away, relax, and come at it fresh. I often come up with new approaches while I’m nowhere near a computer.
  10. Keep it simple
    Try to keep your markup as lean as possible, and apply as few styles as possible to effect your designs. The confluence of bloated markup and conflicting styles can lead to side effects that are difficult to identify and resolve.

Sound off


Comments:

xdcqdkk
Posted at 2/7/2012 8:59:41 AM

bhewng
Posted at 2/3/2012 10:02:35 PM

Aloha!
Posted at 2/3/2012 12:24:42 AM

Perfect!
Posted at 2/2/2012 4:40:38 PM

Perfect!
Posted at 2/2/2012 4:40:17 PM

Perfect!
Posted at 2/2/2012 4:39:58 PM

Perfect!
Posted at 2/2/2012 4:39:43 PM

mlkapm
Posted at 2/2/2012 12:24:04 PM

Hello!
Posted at 2/2/2012 8:27:46 AM

hsmskup
Posted at 2/1/2012 4:21:18 PM

Good site,
Posted at 2/1/2012 6:42:00 AM

Hi there!
Posted at 2/1/2012 6:41:23 AM

Aloha!
Posted at 1/31/2012 8:13:50 AM

Good
Posted at 1/30/2012 11:54:37 PM

Perfect!
Posted at 1/30/2012 4:32:52 AM

rhhpjzsr
Posted at 1/29/2012 9:04:45 PM

ydjoxt
Posted at 1/27/2012 5:00:13 PM

Hello!
Posted at 1/26/2012 12:50:09 AM

Aloha!
Posted at 1/25/2012 1:27:10 AM

Hello!
Posted at 1/24/2012 12:35:57 AM

Aloha!
Posted at 1/19/2012 9:50:01 AM

Hello!
Posted at 1/15/2012 5:56:07 AM

Creation always depends upon real planning and allocation of all resources that's relavent to the client subject or client requirement.Such kind of behaviour will provide ?to any graphic designer or creative person to avoid the more dictations by the client.
Posted at 1/14/2012 8:28:15 PM

Hello!
Posted at 1/14/2012 2:02:14 AM

Hello!
Posted at 1/11/2012 1:26:34 AM

Very nice site! <a href="http://oixypea.com/oxoarxr/1.html">cheap viagra</a>
Posted at 1/4/2012 12:48:03 AM

Hello! dcddfcf interesting dcddfcf site! I'm really like it! Very, very dcddfcf good!
Posted at 1/4/2012 12:47:36 AM

http://www.cheapuggbootsuk4u.com/ http://www.uggssaleuk2011.com/ http://www.belstaffjacketssale2uk.com/
Posted at 12/12/2011 7:57:31 PM

http://www.uggbootssaleuk2u.com/
Posted at 11/9/2011 1:57:30 AM

You state that UBot has saved you countless hours do you think you'll save cash in the long term?
Posted at 9/15/2011 8:30:31 PM

p. s have ever played the game where you write a phrase or word as many times as possible in 30 secs? Smile
Posted at 9/15/2011 8:28:47 PM

bHr http://uggs-clearance.weebly.com eDo http://ugg-boots-sale-uk.weebly.com mQh http://cheap-uggs-for-sale.weebly.com fMb http://uggsonsaleonline.weebly.com iQx http://uggsonsalecheap.weebly.com eKd http://uggfactorystore.weebly.com xQv http://sale-onuggs.weebly.com xNe http://cheap-ugg-bootsforsale.weebly.com pIx http://uggbaileybuttonuk.350.com gEs http://uggbootsonsale.350.com fUf http://uggslippersuk.350.com yPc http://www.cheapuggbootssale.350.com sQs http://www.ugg-bootscheapuk.350.com wOo http://www.uggbootstore.350.com sDy http://www.uggstockistsuk.350.com cCd http://uggs-for-cheap.yolasite.com jWt http://ugg-outlet.yolasite.com hWv http://uggbootsclearancesale.yolasite.com wGg http://uggssale.yolasite.com sIo http://ugg-bailey-button.yolasite.com oZp http://uggsonsalecheap.yolasite.com yVn http://uggoutlets.yolasite.com pDd http://ugg-factoryoutlet.yolasite.com bLj http://ugg-bootsclearance.yolasite.com bKd http://bailey-buttonuggboots.yolasite.com
Posted at 7/19/2011 1:54:55 AM

What is the best search engine http://google.com or http://yahoo.com?
Posted at 6/4/2011 4:39:09 AM

Купить футболку в нашем интернет магазине просто добавьте понравившейся товар в корзину, оф??рмите заказ и Вам доставят футболки на дом! Крупным клиентам мы предлагаем футболки оптом. Подождите, идет отправка Показать все теги. Футболки Денис Симачев от руб: денис симачев футболки . Клуб Симачев . Красная футболка с аппликацией из страз. модель ВФ размер цена евро заказать форма оплаты и доставка Просьба ; … Туники, кардиганы, футболки . Пиджаки, куртки. Услуги. Заказ товара. Раздел покупателя. Не зарегистрирован. [url=http://emesregi.land.ru/83_kupit-mayku-futbolnoy-sbornoy.html]купить майку футбольной сборной[/url] [url=http://triblinkdrugre.land.ru/way-236.html]футболкa с группой the sounds[/url] [url=http://desenreta.narod2.ru/way-242.html]прибор по нанесению надписей на футболки[/url] [url=http://emesregi.land.ru/way-35.html]футболки печать рубашки поло[/url] [url=http://triblinkdrugre.land.ru/way-231.html]с чем носить белую майку в красную полоску[/url] [url=http://kcusunalprev.land.ru/228.html]золотая футболка puma[/url] [url=http://xinmispkertalk.narod2.ru/8.html]наружная реклама и рисунки на футболках[/url] [url=http://xinmispkertalk.narod2.ru/futbolki-na-zakaz-s-neonom.html]футболки на заказ с неоном[/url] [url=http://xinmispkertalk.narod2.ru/194.html]керамическая плитка нанесение логотипа на футболки[/url] [url=http://desenreta.narod2.ru/125.html]футболка панда[/url] http://www.jarabacoard.com/forum/memberlist
Posted at 5/2/2011 8:25:46 PM

jshdkj
Posted at 12/29/2008 6:01:55 PM

dfg
Posted at 12/29/2008 6:01:33 PM

bah
Posted at 12/29/2008 5:40:55 PM