Before I ask the question refer to this jsFiddle: http://jsfiddle.net/AxGHA/3/
I basically want to remove the float: left; StyleSheet attributes on the H2 and P tags IF no image exists within the div with jQuery. Any ideas?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can use
:notand:hasI have done an example code below:and the CSS for that:
example:
http://jsfiddle.net/voigtan/AxGHA/5/
“>img” instead:
http://jsfiddle.net/voigtan/AxGHA/6/
I’m adding a css class to the .section and style it in the css on how I want it to look.