You are currently viewing Could someone tell me why this CSS isn’t working?

Could someone tell me why this CSS isn’t working?

































































































Could someone tell me why this CSS isn’t working? | Web Hosting Talk
















‘);
var sidebar_align = ‘right’;
var content_container_margin = parseInt(‘350px’);
var sidebar_width = parseInt(‘330px’);
//–>














  1. Could someone tell me why this CSS isn’t working?


    I have this in my style sheet to create a download “button”:

    Code:

    /* Style buttons */
    .dload {
      background-color: #007e43;
      border: none;
      color: white;
      padding: 16px 32px;
      cursor: pointer;
      font-size: 18px;
      font-weight: 900;
      margin-top: 48px;
      margin-bottom: 48px;
      text-align: center;
    }
    
    /* Darker background on mouse-over */
    .dload:hover {
      background-color: #7cc68d;
      color: #007e43;
    }

    It looks almost right except that the browser is ignoring the margin-top, margin-bottom, and text align (which I was trying to use to center the button) tags. I’ve looked at all kinds of CSS tutorial sites and can’t figure out what I’m doing wrong; it looks right. Anyone have any idea?













Similar Threads


  1. Replies: 20


    Last Post: 02-22-2006, 01:59 PM


  2. Replies: 6


    Last Post: 09-30-2003, 02:47 AM


  3. Replies: 2


    Last Post: 05-20-2003, 04:19 AM


  4. Replies: 8


    Last Post: 10-22-2002, 05:11 PM


  5. Replies: 5


    Last Post: 04-30-2002, 08:17 PM

Tags for this Thread



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  













https://www.webhostingtalk.com/showthread.php?t=1864547&goto=newpost

Leave a Reply