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

CSS Forum

moz-background image taking longer to load

5+ Year Member

Msg#: 4307773 posted 12:23 pm on May 4, 2011 (gmt 0)

I've got a button at the end of a search bar with moz-background to curve the corners of the image to it looks like it's part of the bar and not a separate image... the website it love-rugs (search bar up the top right).

Whenever the page loads it takes a few seconds for this image to appear and render correctly. Also whenever I refresh the page everything else renders virtually instantly but this always takes a few seconds to appear.

Any ideas why this is happening or how to make it load the same as everything else?

Here's the code:

<li style="float:right; padding:4px 0px 12px 0px; margin-right:8px"> <form action="" method="get"><input name="keywords" id="searchBox" style="color: #7F7F7F; height:24px; line-height:22px; -moz-border-radius: 5px 0px 0px 5px;
-webkit-border-radius: 5px; padding-left:2px; vertical-align:middle; width:200px; font-size:12px; border-right:none" onfocus="this.value='';" value="Search by Rug Ref# or Keyword(s)" size="27" maxlength="120" /><input type="hidden" name="action" value="search" /><input type="image" src="images/buttons/search-grey-small.png" alt="Search" title="Search" style="-moz-border-radius: 0px 5px 5px 0px;
-webkit-border-radius: 5px; border-left:none;" onclick="if (keywords.value=='Search by Rug Ref# or Keyword(s)') keywords.value='';"/>



5+ Year Member

Msg#: 4307773 posted 12:33 pm on May 4, 2011 (gmt 0)

Think I've solved it... there wasn't a folder called buttons it was 'button'. When I changed it to button it loads faster. I didn't know it was possible for it to go in and look in other folders to find the image but that's the only thing I can think it was doing?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
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