Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2011
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Browser StyleSheet issue

    I have the following script on my page:
    <![if !IE]>
    <div id='logowrapper'>
    <span class='siteLogo'><img src='logo2.png' align=abstop /></span>
    <span class='findUs'><img src='fLogo.png' border=0 title='Follow us on Facebook' align=abstop /><span class='topdvr'><img src='top_nav_dvr.png' alt=' - ' /></span><a href='www.twitter.com/' rel="nofollow" target='_blank'><img border=0 title='Follow us on Twitter' src='tLogo.png' align=abstop /></a></span>
    </div>
    <![endif]>
    <!--[if IE]>
    ***** APPLY SAME DIV SO IE RECOGNIZES SAME WAY AS OTHER BROWSER
    <![endif]-->

    And i use the following CSS to style the NOT IE browser above:
    #logowrapper{
    margin:15px auto;
    padding:0px 22px 0px 75px;
    width:1049px;
    }
    .siteLogo {
    width:45%;
    }
    .findUs {
    padding: 0px 0px 0px 400px;
    width:45%;
    }

    +++++++++++++++++++++++++++

    Now my question is how do I achieve the same effect when the user in Internet Explorer browser, either thru DIV or TABLE style?

    Thank you

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    in my view, the only sensible way is to make the source code the same no matter the browser. then make your css correspond to the actual browser; starting with something like FF and then tweaking for IE.
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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