Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


Things to avoid when using CSS

css things to avoid

  • Please log in to reply
 

#1 OneDes

OneDes

    Senior Member

  • Designer
  • 282 posts

Posted 11 August 2012 - 01:27 PM

Things to avoid when using CSS:

1. Avoid Superfluous Selectors
Choose the shorter and simpler CSS declarations
Ex. If you’re code is

ul li { ... }

ol li { ... }

table tr td { ... }

instead you can simplify it as:

li { ... }

td { ... }

<li> will exist within <ol> or <ul> and <td> will be inside <table> and <tr> so there is no need to necessary re-insert them.

2.Avoid using <table>, and use <div> instead





Also tagged with one or more of these keywords: css, things to avoid

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users