Jump to content

help with HTML :)

aDham_z
Go to solution Solved by Hackzzila,

If you have two divs that you want to style differently you have to do it with classes, otherwise the divs will have the same styling. If you use classes you can target a seprate class instead of an element.

 

EDIT: You can use classes for every element

hey guys i have a Q right now ....

 

it's not really but i was asking what does the <div class=.....>

 

do ?

 

i really wanna know i started CSS about yesterday and i found it's could like coulour text like 3 or more text in the same time !

 

so does just do that or something else ?

 

thanks :)

Link to comment
Share on other sites

Link to post
Share on other sites

If you have two divs that you want to style differently you have to do it with classes, otherwise the divs will have the same styling. If you use classes you can target a seprate class instead of an element.

 

EDIT: You can use classes for every element

00110000 00110001 00110000 00110000 00110000 00110000 00110001 00110000 00100000 00110000 00110001 00110001 00110000 00110001 00110001 00110001 00110001 00100000 00110000 00110001 00110001 00110001 00110000 00110000 00110001 00110000 00100000 00110000 00110001 00110001 00110000 00110000 00110001 00110000 00110000 00100000 00110000 00110001 00110001 00110000 00110000 00110001 00110000 00110001 00100000 00110000 00110001 00110001 00110000 00110001 00110001 00110000 00110001 

Link to comment
Share on other sites

Link to post
Share on other sites

If you have two divs that you want to style differently you have to do it with classes, otherwise the divs will have the same styling. If you use classes you can target a seprate class instead of an element.

thanks :)

 

helped a lot :) 

Link to comment
Share on other sites

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×