Having some trouble shifting the CSS around!

Discussion in 'CSS' started by wvccboy, May 21, 2012.

  1. #1
    Hello,

    If you visit http://www.yohoasianbistro.com/, you will see the Special Offer box on the right hand side.

    This is what I am attempting to make the box look like with CSS: 12960800.jpg

    However, I've toyed with the CSS a bit but am unable to make it happen. Any suggestions on how to re-format the current CSS code would be appreciated.

    Thank you!
     
    Solved! View solution.
    wvccboy, May 21, 2012 IP
  2. #2
    You'll need to make the <p class="special"> as <div class="special">.

    Here is the markup & CSS that will make it happen. Move the inline CSS to appropriate classes.

    <div class="special" style="height: 130px; text-align:center; ">
    
      <span style="display: block; padding:0 0 15px;">
        Special Offer
      </span>
      
      <div style="float: left; text-align: center; width: 178px;">
        Buy 1 <br> Get 1 free
      </div>
      
      <div style="float: right; text-align: center; width: 178px;">
        Buy 2 <br> Get 1 free
      </div>
      
    </div>
    Code (markup):
     
    czent, May 22, 2012 IP
    wvccboy likes this.
  3. wvccboy

    wvccboy Notable Member

    Messages:
    2,632
    Likes Received:
    81
    Best Answers:
    1
    Trophy Points:
    250
    #3
    That works perfectly. Thank you so much!!
     
    wvccboy, May 22, 2012 IP