Jump to content

Recommended Posts

Hello guys I have some questions about CSS:

What is the different between these codes:
div[class*="value"]

div[class$="value"]

div[class^="value"]

Thanks guys

Link to comment
Share on other sites

2 hours ago, dsonesuk said:

* Is known as wildcard symbol so if value appears anywhere within class attribute value

^ Is 'begin with', so if value appears at beginning of class attribute value.

$ Is 'end with', so if value appears at end of class attribute value.

https://www.w3schools.com/css/css_attribute_selectors.asp

Thanks a lot.:rolleyes:

Link to comment
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
×
×
  • Create New...