Results 1 to 4 of 4

Thread: Why are browsers so picky?

  1. #1
    Join Date
    Sep 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Why are browsers so picky?

    Hi everyone,

    I’m incontering a few setbacks with my website (www.ilcontadinobio.it)
    Try to open it on pc (it should be fine) and on smartphone…exactly, chaos!
    The behaviour is pretty much the same on mobile browsers such as Chrome, Mozilla, Opera and Dolphin.

    -the flash header is within table and centered.

    -same story for the azure rectangle with fading sides that I put in backgroung.

    Code:
    body {
      background: url(../images/sfondo.png)  no-repeat top center;
    }
    -Less convincing is the green menù which I don’t know whether there is any setting that might change its position but since it work on standard browsers, leave me clueless.

    Code:
    @charset "utf-8";
    /* CSS Document */
     
    #sse2
    {
        /*You can decorate the menu's container, such as adding background images through this block*/
       background:#fff url(../images/verde.gif) no-repeat center; 
        height: 20px;
        padding: 10px;
        border-radius: 6px;
        -moz-border-radius: 6px;
        -webkit-border-radius: 6px;
    }
    #sses2
    {
        margin:0 auto;/*This will make the menu center-aligned. Removing this line will make the menu align left.*/
    }
    #sses2 ul 
    {
        position: absolute;
        list-style-type: none;
        float: center;
        padding: 0;
        margin: 0;
        width: 1074px;
        top: 225px;
        height: 43px;
    }
    #sses2 li
    {
        float: left;
        list-style-type: none;
        padding:0;margin:0;background-image:none;
    }
    /*CSS for background bubble*/
    #sses2 li.highlight
    {
        background:#693500 url(../images/mb2_2.gif) no-repeat center bottom;
        top:3px;
        height:17px;
        border-radius: 8px;
        -moz-border-radius: 8px;
        -webkit-border-radius: 8px;
        z-index: 1;
        position: absolute;
        overflow:hidden;
    }
    #sses2 li a
    {
        width: 2000;
        height:30px;
        padding-top: 3px;
        margin: 0 30px;/*used to adjust the distance between each menu item. Now the distance is 20+20=40px.*/
        color: #f6f165;
        font: strong 12px arial;
        text-align: center;
        text-decoration: none;
        float: center;
        display: block;
        position: relative;
        z-index: 2;
    }
    It doesn't seem so difficult to solve but I lack the css knowledge and experience to pick the right tag and tamper with it.

    First two how it goes on mobile third how in normal pc browsers







    Help please!
    Thanks
    Last edited by Beverleyh; 09-05-2014 at 07:16 AM. Reason: formatting

  2. #2
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You MUST actually work for every browser separately... For example, the IE settings..


    And now the coding, what you need to do, in order to make the page look different in every browser.. (IE Example below)

    Code:
    <!--[if IE]>
    <style type="text/css">
      IE specific CSS rules go here
    </style>
    <![endif]-->
    Last edited by nemesis23; 09-08-2014 at 08:31 PM.

  3. #3
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What coding software are you using? I remember myself as a starter, and at the beginning I was sticked to notepad only.. Then I grew up to more complex coding and design softwares..

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Your sizing is done in pixels. As a result, your site looks different on small devices (scroll bars are added).
    If you want your site to look acceptable on all devices (= with all screen resolutions), you'll have to make it 'responsive' by scaling the pages. But that may be a hell of a job.
    And remember, you must NOT work for every browser separately. IE doesn't support the conditional comments anymore.

Similar Threads

  1. CSS for different browsers
    By Cotec in forum CSS
    Replies: 1
    Last Post: 07-28-2010, 03:55 AM
  2. No Other Browsers...........
    By dchopda in forum Looking for such a script or service
    Replies: 2
    Last Post: 04-07-2009, 04:41 AM
  3. browsers
    By queerfm in forum HTML
    Replies: 9
    Last Post: 08-17-2006, 08:06 PM
  4. New browsers
    By sleipner in forum The lounge
    Replies: 1
    Last Post: 02-23-2006, 07:13 PM
  5. PHP and Browsers
    By Brooks in forum PHP
    Replies: 5
    Last Post: 04-08-2005, 06:18 PM

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
  •