SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict next2heaven's Avatar
    Join Date
    Apr 2005
    Posts
    257
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Question with buttons

    So I've got buttons that I'm adding icons to (or inside rather) and they are displaying incorrectly in IE (big surprise). Any idea on how to tweak the css below to match them both?

    Here is the example of how they look:



    CSS:
    Code:
    .ui_button {
    	font-size:11px;
    	font-weight:normal;
    	background-color:#dedfe0;
    	border:1px solid #c1c1c1;
    	border-top-color:#fff;
    	color:#747474;
    	padding:6px 6px;
    	font-style:normal;
    }
    
    .ui_button:hover { cursor:pointer; cursor:hand; background-color:#eee; }
    
    .ui_button_add,
    .ui_button_view {
    	padding-left:25px;
    	background:#dedfe0 url(../images/silk-icons/add.png) no-repeat 5px center;
    	text-decoration:none !important;
    	text-transform:uppercase;
    	font:11px "Lucida Grande", Lucida, Verdana, sans-serif;
    	color:#747474 !important;
    	margin-bottom:5px;
    }
    
    .ui_button_add   { background-image:url(../images/silk-icons/add.png); }
    .ui_button_view   { background-image:url(../images/silk-icons/view.png); }

  2. #2
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Well that's 50% of it. What's your HTML look like?

  3. #3
    SitePoint Addict next2heaven's Avatar
    Join Date
    Apr 2005
    Posts
    257
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Basically this:

    Code:
    <div><input type="button" onclick="openPage(-1)" value="Add New" class="ui_button ui_button_add" name="addNew"> <input type="button" onclick="window.location='page.php'" value="View Records" class="ui_button ui_button_view" name="viewRecords"></div>

  4. #4
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Have you tried giving it a width?

  5. #5
    SitePoint Addict next2heaven's Avatar
    Join Date
    Apr 2005
    Posts
    257
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect. That's all it needed. Thanks!


Bookmarks

Posting Permissions

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