This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML CSS / Tumblr Theme Coding Question, please help?
03-20-2014, 12:19 AM
Post: #1
HTML CSS / Tumblr Theme Coding Question, please help?
HTML editing in the <style></style> section:

When one of the DIV Class things are like this:

#picture:hover #left { ... }

What does it mean?

Especially the #left, what does that mean?

Thanks in advance! Smile

Ads

Find all posts by this user
Quote this message in a reply
03-20-2014, 12:27 AM
Post: #2
 
A hashtag (#) in front of a word indicates that that is the name of an HTML element's id. The ":hover" means that a hover state for the thing is being selected. This means that whatever is in the brackets ({ }) will only apply to an element with an id of "left" which is inside of an element with the id of "picture", and only when "picture" has the mouse within its area.

If that's not too clear, try taking a look at the HTML and CSS lessons on w3schools.com, htmldog.com, or codecademy.com.

Ads

Find all posts by this user
Quote this message in a reply
03-20-2014, 12:35 AM
Post: #3
 
picture and #left are the names of div classes. Basically, anything that you wrap in the <div class="picture"></div> and <div class="left"></div> will be affected by whatever is defined within { and }.

:hover after a div class means that the CSS within the curly brackets will only take effect when the element wrapped the appropriate div tags is being hovered.


For example, if you have this in the style section:
#text:hover {color:red}

then anything wrapped in the text div tags(<div class="text">BLALALAA</div>) will turn red when you hover your mouse pointer over it. In this case, BLALALAA is the text that would need to be hovered in order to turn red.

Hope that wasn't all too confusing.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)