homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Submit button, not in IE on Vista

 12:12 am on Sep 20, 2011 (gmt 0)

I just discovered that my 'buy now' button isn't showing up on IE under Windows Vista. Works fine under linux, and XP for a variety of browsers.

Here's the code:

<input id="getbtn" type="submit" name="getbtn" />

Then the CSS:
#getbtn{width:186px;height:40px;margin-left:65px;border:0;background:transparent url(images/get.png) no-repeat center top;text-indent:-1000em;cursor:pointer;cursor:hand}#getbtn{padding:0}

I simply don't know enough about cross browser compatibility to determine why this is happening. Any thoughts, or suggstions on what to test?




 4:29 pm on Sep 20, 2011 (gmt 0)

Validated the CSS? I notice the last selectors are missing ;, which **should** be OK, but worth a shot (and you have two cursor: rules)

Did you try setting display:block on the button?


 4:32 pm on Sep 20, 2011 (gmt 0)

I haven't validated it, though I did compress it using one of those online tools. that's probably why it's missing some non-essential stuff.

I'll try adding display:block and see what it does; thank you.


 6:32 pm on Sep 22, 2011 (gmt 0)

rocknbil, thanks a million. adding display:block to the css file fixed it.

I've got another image that's not displaying correctly under those circumstances but I'm not done doing my own investigating yet :).


 4:33 pm on Sep 23, 2011 (gmt 0)

Sweet . . .remembering <img> is inline by default, block also applies . . . same deal with anchors and their background images.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved