trachr Posted August 11, 2012 Share Posted August 11, 2012 I was lookin at a couple decent websites to see hwo they did some stuff in their CSS... getting inspiration and looking for stuff I dindt know how to do... anyway I came across 2 things in the CSS I didnt understand. [class*=span] which im guessing is a wildcard, but I had thought wildcards in CSS were impossible. So I figured Id ask here to see if there are some sort of rules or incompatibilities with this. The 2nd thing I came across was small in the css such as this: h1 small{ color...}h2 small{...}h3 small{...}p small {...} I know you can use small to descibe a fontsize, as well as a <small> in the html, but I dont get what is being accomplished here... its probably something simple I just never thought of it this way so I figured id ask and see if I cant learn somthin new. Sorry if these are remedial questions, but I figure if I never ask I wont learn. Thank you. Link to comment Share on other sites More sharing options...
eTianbun Posted August 11, 2012 Share Posted August 11, 2012 (edited) Goto W3schools.com/css and learn CSS. After going through that & you have problem(s), come back here and ask. Edited August 11, 2012 by CodeName Link to comment Share on other sites More sharing options...
niche Posted August 11, 2012 Share Posted August 11, 2012 (edited) CodeName has a point. Most of the code you'll see will be difficult to or impossible to understand until you do the tutorials and start writing code yourself. In fact, you, mostly likely, will never use most of the code you study (at least not for a while). So, learn the basics, prove to yourself and others you can write basic code and you'll get all the help you need here. Demonstrating basic skills and doing your best to do it yourself is the price of admission. It my seem like that's unnecessary, but there's a limit to how many short cuts you can take without dragging the people that want to help you on a bumpy ride. The simple fact is using someone else's code when you have weak coding skill's usually takes too much time, IMO. Edited August 11, 2012 by niche Link to comment Share on other sites More sharing options...
birbal Posted August 14, 2012 Share Posted August 14, 2012 h1 small{color:red;} bold part is selector. it selects the nodes which you want to get styled. inside curly braces you will put styling information. 'h1 small' tells select small tag which is inside h1 tag and it will make 'red' and [class*=span] is not wild card. check the page linked to read more information. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now