title: Class declaration Header - HTML 5
body: <p>I was trying to put a image (logo) in the header element provided by HTML5 and I am curious if anyone knows if it is possible to declare a class in CSS something on the lines of <code>header.image</code>?  </p>
  
  <p>I tried <code>header.image</code> and it didn't seem to work, however as soon as I had the class named just <code>.headerimage</code> then it seem to be picking up the padding property I was trying to apply.  </p>
  
  <p>I'm doing some very basic learning as it's been sometime I picked up HTML code. Please help if your time permits. Thanks</p>
  
  <p>I was trying to put a image (logo) in the header element provided by HTML5 and I am curious if anyone knows if it is possible to declare a class in CSS something on the lines of <code>header.image</code>?  </p>
  
  <p>I tried <code>header.image</code> and it didn't seem to work, however as soon as I had the class named just <code>.headerimage</code> then it seem to be picking up the padding property I was trying to apply.  </p>
  
  <p>I'm doing some very basic learning as it's been sometime I picked up HTML code. Please help if your time permits. Thanks</p>
  
  <p>This is not the entire HTML/CSScode, but I could manage to take some screenshots. You guys helped me answer some questions and understand how period is not relevant to what I was trying to do. 
  Screenshot 1: <a href="https://skitch.com/android86/fm4r7/dreamweaver" rel="nofollow">https://skitch.com/android86/fm4r7/dreamweaver</a>  ( HTML design view)                     Screenshot 2: <a href="https://skitch.com/android86/fm4fd/dreamweaver" rel="nofollow">https://skitch.com/android86/fm4fd/dreamweaver</a> ( CSS)</p>
  
  <p>In the screenshot 1, I tried to have the links for website Contact and Login as a part of the Nav tag provided by html 5, however I wanted these to be horizontally next to the hgroup. I assigned a width to hgroup and now I have a lot of space to the right of hgroup however the nav is starting to line up horizontally, is this something I should handle with position or float property in CSS? I tried both in various combinations, I assigned a width to nav in order to fit in the area however it doesn't seems to be working. Any clue? The CSS code is in screenshot 2. After looking at the discussion here I thought using class might not be required instead rather parent child relation might be most relevant. I personally thought and read that one should use id's in CSS when it is a very unique scenario and class when we expect to use a certain thing very commonly, is this parent child relation a way of declaring a class? Thanks everyone. </p>