Click here to Skip to main content
15,887,267 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Web page optimization when displaying same image several times Pin
Gerben Jongerius12-Aug-11 3:41
Gerben Jongerius12-Aug-11 3:41 
GeneralRe: Web page optimization when displaying same image several times Pin
Not Active12-Aug-11 4:16
mentorNot Active12-Aug-11 4:16 
GeneralRe: Web page optimization when displaying same image several times Pin
#realJSOP1-Sep-11 9:50
mve#realJSOP1-Sep-11 9:50 
GeneralRe: Web page optimization when displaying same image several times Pin
Not Active1-Sep-11 11:15
mentorNot Active1-Sep-11 11:15 
AnswerRe: Web page optimization when displaying same image several times Pin
cjoki1-Sep-11 11:16
cjoki1-Sep-11 11:16 
Question[IE]Sending non-english characters via jquery.ajax Pin
benams11-Aug-11 2:10
benams11-Aug-11 2:10 
QuestionData missing While importing Text file (.txt) to sql server 2008 using ASP Pin
priyaahh9-Aug-11 20:12
priyaahh9-Aug-11 20:12 
QuestionProblem with CSS in Safari, Firefox, Chrome etc [modified] Pin
Payal_e_m9-Aug-11 16:17
Payal_e_m9-Aug-11 16:17 
Hi,

I am working on an aspx file which uses css. It displays fine in IE but not in Safari, Chrome, Firefox etc. I am trying to get my head around it but all in vain..
When it get displayed in other browsers all the li jumps to the right only displaying only half of each li.
What i think is the width(eg : width :67px for li.studylink a:active) given in the css is not being identified by other browsers.

It would be very helpful if someone could help me sort it out. I am posting my html contents and css which doesn't gets displayed right.


Thanks in advance.
Payal



CSS
----

.HeaderMenu ul {float:right;height:20px;font-size:6pt;padding-top:2px;}
.HeaderMenu li {display:inline;font-family:arial,arial,sans-serif;font-size:6pt;height:20px;padding:0 0 0 15px; }
li.studylink a:link, li.studylink a:visited, li.studylink a:active {background-image:URL(/Test/Images/studylinkoff.jpg);background-repeat:no-repeat;background-position:left center;width:67px;vertical-align:middle;padding:6px 5px 7px 23px;color:#000;text-decoration:none;height:100%;  }
li.studylink a:hover {background-image:URL(/Test/Images/studylinkon.jpg);background-repeat:no-repeat;background-position:left center;color:#000;text-decoration:none;height:100%; }
li.home a:link, li.home a:visited, li.home a:active {background-image:URL(/Test/Images/home_off.gif);background-repeat:no-repeat;background-position:left center;width:67px;vertical-align:middle;padding:6px 5px 7px 23px;color:#000;text-decoration:none;height:100%;  }
li.home a:hover {background-image:URL(/Test/Images/home_on.gif);background-repeat:no-repeat;background-position:left center;color:#000;text-decoration:none;height:100%; }
li.print a:link, li.print a:active, li.print a:visited {background-image:URL(/Test/Images/print_off.gif);background-repeat:no-repeat;background-position:left center;width:80px;vertical-align:middle;padding:6px 5px 7px 23px;color:#000;text-decoration:none;height:100%;  }
li.print a:hover {background-image:URL(/Test/Images/print_on.gif);background-repeat:no-repeat;background-position:left center; color:#000;text-decoration:none;height:100%; }



HTML
------
XML
<table border="0" cellspacing="0" cellpadding="0" width="770" height="70">
                                       <tr>
                                           <td>
                                               <A id="a1" href="/Test/Info/Information/HomePage.aspx" runat="server">
                                               </A><img src="/Test/Images/Head.jpg" border="0">
                                               <div class="HeaderMenu">
                                                   <ul>
                                                       <li class="studylink">
                                                           <a  href="http://www.google.com/" title="Study Link. "></a>
                                                       </li>
                                                       <li class="home">
                                                           <a href="http://www.yahoo.com/" title="Back to the Homepage. "></a>
                                                       </li>
                                                       <li class="print">
                                                           <a href="#" onclick="javascript:print();return false" title="Print this page. "></a>
                                                       </li>
                                                   </ul>
                                               </div>
                                              </td>
                                      </tr>
                                   </table>


modified on Tuesday, August 9, 2011 11:01 PM

AnswerRe: Problem with CSS in Safari, Firefox, Chrome etc Pin
Ed Nutting23-Aug-11 0:17
Ed Nutting23-Aug-11 0:17 
QuestionMicrosoft Web Dev Tools Pin
G-Tek8-Aug-11 4:15
G-Tek8-Aug-11 4:15 
AnswerRe: Microsoft Web Dev Tools Pin
Not Active8-Aug-11 4:59
mentorNot Active8-Aug-11 4:59 
QuestionHow can I include an arrow graphic on a selected menu item? Pin
Brady Kelly5-Aug-11 3:25
Brady Kelly5-Aug-11 3:25 
AnswerRe: How can I include an arrow graphic on a selected menu item? Pin
GenJerDan5-Aug-11 3:56
GenJerDan5-Aug-11 3:56 
AnswerRe: How can I include an arrow graphic on a selected menu item? Pin
enhzflep5-Aug-11 11:26
enhzflep5-Aug-11 11:26 
GeneralRe: How can I include an arrow graphic on a selected menu item? Pin
Brady Kelly5-Aug-11 20:27
Brady Kelly5-Aug-11 20:27 
Questionwhat does this mean in the css3 font? Pin
cjoki4-Aug-11 4:23
cjoki4-Aug-11 4:23 
AnswerRe: what does this mean in the css3 font? Pin
User 17164924-Aug-11 5:28
professionalUser 17164924-Aug-11 5:28 
GeneralRe: what does this mean in the css3 font? Pin
cjoki4-Aug-11 10:52
cjoki4-Aug-11 10:52 
GeneralRe: what does this mean in the css3 font? Pin
User 17164924-Aug-11 12:13
professionalUser 17164924-Aug-11 12:13 
GeneralRe: what does this mean in the css3 font? Pin
cjoki5-Aug-11 5:14
cjoki5-Aug-11 5:14 
QuestionContent Management System? Pin
Waqas Ahmad Abbasi3-Aug-11 20:29
Waqas Ahmad Abbasi3-Aug-11 20:29 
AnswerRe: Content Management System? Pin
SUCHIT S SHAH3-Aug-11 23:55
SUCHIT S SHAH3-Aug-11 23:55 
AnswerRe: Content Management System? Pin
Simon_Whale4-Aug-11 0:08
Simon_Whale4-Aug-11 0:08 
QuestionImg centering and music player Pin
starr0073-Aug-11 14:01
starr0073-Aug-11 14:01 
AnswerRe: Img centering and music player Pin
vbmike3-Aug-11 17:37
vbmike3-Aug-11 17:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.