#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    5
    Rep Power
    0

    CSS menu not working on ipad


    Hi all,
    I hope somebody can help me I have very basic knowledge of CSS and I'm having trouble getting a menu working on ipad.
    Hope somebody can help

    Cheers
    Mark
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Dec 2004
    Posts
    3,027
    Rep Power
    377
    erm.. your code (css/html) and a link if you can + screenshot of how it looks on ipad
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    5
    Rep Power
    0

    (css/html)


    Originally Posted by paulh1983
    erm.. your code (css/html) and a link if you can + screenshot of how it looks on ipad
    [CODE]
    #cssmenu ul {
    margin: 0;
    padding: 0;
    }
    #cssmenu li {
    margin: 0;
    padding: 0;
    }
    #cssmenu a {
    margin: 0;
    padding: 0;
    }
    #cssmenu ul {
    list-style: none;
    }
    #cssmenu a {
    text-decoration: none;
    }
    #cssmenu {
    height: 70px;
    background-color: #000000;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.4);
    width: auto;
    }
    #cssmenu > ul > li {
    float: right;
    margin-left: 15px;
    position: relative;
    }
    #cssmenu > ul > li > a {
    color: #a0a0a0;
    font-family: Verdana, 'Lucida Grande';
    font-size: 15px;
    line-height: 70px;
    padding: 15px 20px;
    -webkit-transition: color .15s;
    -moz-transition: color .15s;
    -o-transition: color .15s;
    transition: color .15s;
    background-color: #000;
    }
    #cssmenu > ul > li > a:hover {
    color: #ffffff;
    }
    #cssmenu > ul > li > ul {
    opacity: 0;
    visibility: hidden;
    padding: 16px 0 20px 0;
    background-color: #fafafa;
    text-align: left;
    position: absolute;
    top: 55px;
    left: 50%;
    margin-left: -90px;
    width: 120px;
    -webkit-transition: all .3s .1s;
    -moz-transition: all .3s .1s;
    -o-transition: all .3s .1s;
    transition: all .3s .1s;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    }
    #cssmenu > ul > li:hover > ul {
    opacity: 1;
    top: 65px;
    visibility: visible;
    }
    #cssmenu > ul > li > ul:before {
    content: '';
    display: block;
    border-color: transparent transparent #fafafa transparent;
    border-style: solid;
    border-width: 10px;
    position: absolute;
    top: -20px;
    left: 50%;
    margin-left: -10px;
    }
    #cssmenu > ul ul > li {
    position: relative;
    }
    #cssmenu ul ul a {
    color: #323232;
    font-family: Verdana, 'Lucida Grande';
    font-size: 13px;
    background-color: #fafafa;
    padding: 5px 8px 7px 16px;
    display: block;
    -webkit-transition: background-color 0.1s;
    -moz-transition: background-color 0.1s;
    -o-transition: background-color 0.1s;
    transition: background-color 0.1s;
    }
    #cssmenu ul ul a:hover {
    background-color: #f0f0f0;
    }
    #cssmenu ul ul ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -16px;
    left: 205px;
    padding: 16px 0 20px 0;
    background-color: #fafafa;
    text-align: left;
    width: 120px;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    }
    #cssmenu ul ul > li:hover > ul {
    opacity: 1;
    left: 120px;
    visibility: visible;
    }
    #cssmenu ul ul a:hover {
    background-color: #000000;
    color: #f0f0f0;
    }

    <!DOCTYPE html>
    <html>

    <head>

    <link rel='stylesheet' type='text/css' href='cssmenu/menu_source/styles.css' />
    <style type="text/css">

    body {
    background-color: #000;
    }
    .Header {color: #E5E5E5;
    }
    .inter {color: #010101;
    }
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    color: #FFF;
    font-size: 10px;
    }
    </style>
    <script src='(URL address blocked)
    ></script>
    <meta charset="UTF-8">
    </head>
    <body>
    <div id='cssmenu'>
    <ul>
    <li><a href='cssmenu/menu_source/index.html'><span>Contact</span></a></li>
    <li class='has-sub'><a href='#'><span>Portfolio</span></a>
    <ul>
    <li class='has-sub'><a href='#'><span>Product 1</span></a>
    <ul>
    <li><a href='#'><span>Sub Item</span></a></li>
    <li class='last'><a href='#'><span>Sub Item</span></a></li>
    </ul>
    </li>
    <li class='has-sub'><a href='#'><span>Product 2</span></a>
    <ul>
    <li><a href='#'><span>Sub Item</span></a></li>
    <li class='last'><a href='#'><span>Sub Item</span></a></li>
    </ul>
    </li>
    </ul>
    </li>
    <li><a href='#'><span>About me</span></a></li>
    <li class='last'><a href='#'><span>Home</span></a></li>
    </ul>
    </div>
    <div align="center">
    <p><img src="Images/main-name.gif" alt="" width="356" height="337" /><br />
    </p>
    </div>
    <p style=" position: absolute; bottom: 0; left: 0; width: 100%; text-align: center;">Macster Ltd Company Registration No: 08721384 Director: Mark Raynor</p>
    </body>
    </html>
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    5
    Rep Power
    0

    screenshot


    This is how it looks on firefox
    w_w_w.mark-raynor.c_o.u_k
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    5
    Rep Power
    0
    Originally Posted by paulh1983
    erm.. your code (css/html) and a link if you can + screenshot of how it looks on ipad
    Hi Paul was the code I put up any good?

    Mark

IMN logo majestic logo threadwatch logo seochat tools logo