Jump to content

Class syntax


mjsulliv

Recommended Posts

I'm confused about some CSS syntax. I thought you could "classify" a tag w/o using the "class" attribute in the HTML by specifying a type of tag in the CSS.Example:CSS:

input.checkbox {   margin-left: 50px;}

Then whenever a checkbox was used in the HTML it would have a 50px margin on the left; even w/o having class=checkbox in the "input" html.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...