Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Dec 2011
    Location
    North East Of England
    Posts
    19
    Member #
    30307
    Liked
    2 times
    Could someone possibly help me to make this work more compatibly with a mobile device.

    Code:
    body {
      
        background-color: #508cba;
      
        font-family: Century Gothic, Georgia, "Times New Roman", Times, serif;
      
        color: #000000;
      
        background-image: url(images/bg.png);
      
        background-position: top center;
      
        background-repeat: repeat-y;
      
    }
      
    .content {
      
        width: 900px;
      
        margin: 0 auto;
      
    }
      
    .header {
      
        height: 130px;
      
        border-bottom: 5px solid #508cba;
      
    }
      
    .logo {
      
        width: 800px;
      
        padding-top: 30px;
      
        float: right;
      
        padding-bottom: 25px;
      
    }
      
    .icon {
      
        width: 100px;
      
        padding-top: 15px;
      
        padding-bottom: 10px;
      
        text-align: left;
      
        float: left;
      
    }
      
    .menu {
      
        width: 600px;
      
        float: left;
      
        font-size: 14px;
      
        word-spacing: 20px;
      
    }
      
    .menu a{
      
        color: #000000;
      
        text-decoration: none;
      
        padding-bottom: 3px;
      
    }
      
    .menu a:hover{
      
        color: #508cba;
      
        text-decoration: none;
      
        padding-bottom: 3px;
      
        border-bottom: 1px dotted #508cba;
      
    }
      
    .split {
      
        color: #508cba;
      
        font-size: 18px;
      
    }
      
    .clock {
      
        width: 300px;
      
        float: right;
      
        font-size: 14px;
      
        text-align: right;
      
    }
      
    .homeslide {
      
        margin: 0 auto;
      
        padding-top: 10px;
      
        padding-bottom: 10px;
      
        border-bottom: 5px solid #508cba;
      
    }
      
    .homeleftbox {
      
        margin-top: 10px;
      
        width: 420px;
      
        float: left;
      
        border: 1px solid #9CF;
      
        background-color: #9CF;
      
        padding: 10px;
      
        height: 200px;
      
    }
      
    .homerightbox {
      
        margin-top: 10px;
      
        width: 420px;
      
        float: right;
      
        border: 1px solid #9CF;
      
        background-color: #9CF;
      
        padding: 10px;
      
        height: 200px;
      
    }
      
    .fullspace {
      
        margin-top: 10px;
      
        width: 900px;
      
        float: right;
      
        border: 0px solid #999999;
      
        padding: 0px;
      
    }
      
    .divide {
      
        width: 900px;
      
        height: 5px;
      
        background-color: #508cba;
      
        margin-top: 10px;
      
        margin-bottom: 15px;
      
    }
      
    .topabout {
      
        border: 1px solid #999999;
      
        margin-bottom: 10px;
      
        text-align: left;
      
        margin-right: 10px;
      
        height: 161px;
      
    }
      
    .about {
      
        border: 1px solid #999999;
      
        text-align: left;
      
        margin-right: 10px;
      
        height: 161px;
      
    }
      
    .t1 {
      
        font-size: 18px;
      
        font-weight: bold;
      
        padding-bottom: 10px;
      
        color: #555555;
      
    }
      
    .t1 a {
      
        font-size: 18px;
      
        font-weight: bold;
      
        padding-bottom: 10px;
      
        color: #555555;
      
        text-decoration: none;
          
    }
      
    .t2 {
      
        font-size: 14px;
      
        line-height: 35px;
      
    }
      
    .t2 a{
      
        color: #555555;
      
    }
      
    .t2 a:hover{
      
        color: #333333;
      
        text-decoration: underline;
      
    }
      
    .t3 {
      
        font-size: 14px;
      
        line-height: 35px;
      
        font-weight: bold;
      
        color: #555555;
      
    }
      
    .name {
      
        font-size: 16px;
      
        font-weight: bold;
      
        color: #555555;
      
        vertical-align: top;
      
    }
      
    .position {
      
        font-size: 12px;
      
        font-style: italic;
      
        font-weight: bold;
      
        color: #555555;
      
        vertical-align: top;
      
    }
      
    .bio {
      
        font-size: 13px;
      
        color: #555555;
      
        vertical-align: top;
      
        padding-top: 10px;
      
        height: 150px;
      
    }
      
    .folio {
      
        font-size: 13px;
      
        color: #555555;
      
        vertical-align: top;
      
        padding-top: 10px;
      
    }
      
    .bio2 {
      
        font-size: 13px;
      
        color: #555555;
      
        vertical-align: top;
      
        padding-top: 10px;
      
        height: 130px;
      
    }
      
    .footend {
      
        clear: both;
      
    }
      
    .footer {
      
        border-top: 5px solid #508cba;
      
        margin-top: 10px;
      
        font-size: 10px;
      
        padding-bottom: 20px;
      
        padding-top: 5px;
      
        margin-bottom: 20px;
      
    }
      
    .fleft {
      
        width: 400px;
      
        float: left;
      
        text-align: left;
      
        padding-bottom: 20px;
      
    }
      
    .fright {
      
        width: 400px;
      
        float: right;
      
        text-align: right;
      
        padding-bottom: 20px;
      
    }
      
    .fright a{
      
        text-decoration: none;
      
        color: #000000;
      
    }
      
    .fright a:hover{
      
        text-decoration: none;
      
        color: #508cba;
      
        text-decoration: none;
      
        padding-bottom: 1px;
      
        border-bottom: 1px dotted #508cba;
      
    }
      
    #twit-div {
      
        height: 50px;
      
        text-align: left;
          
    }
      
    ul#twitter_update_list {
      
        list-style: none;
      
            text-align: left;
      
    }
      
    ul#twitter_update_list li {
      
        color:#000
          
    }

  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Your content width is set at 900px - that's too wide for most mobiles.
    If you want your site to scale to the viewport of mobile devices, you can do that with a fluid layout, or better with alternate CSS. You should probably research CSS media queries.
    Here are a couple of articles to get you started.
    http://webdesignerwall.com/tutorials/css3-media-queries
    and
    http://css-tricks.com/snippets/css/m...ndard-devices/
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  4. #3
    Junior Member
    Join Date
    Dec 2011
    Location
    North East Of England
    Posts
    19
    Member #
    30307
    Liked
    2 times
    Thanks

  5. #4
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    Like AM said, you should use a fluid layout... and use percentages on your font sizes as well.

    let me also add that forget the hover effects and any css realted to hovers as mobile devices don't have a hover action...

    using a mobile specific CSS would be your best bet.

  6. #5
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    @media (max-device-width:480px){
    CSS styles here
    }
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  7. #6
    Member ravage's Avatar
    Join Date
    Apr 2011
    Posts
    92
    Member #
    27355
    Liked
    2 times
    is it even worth coding a mobile css? i'd say yes for a tablet because you have a larger screen to work with but wouldn't it be better just to develop a dedicated app if you're really that worried about people being able to connect to your content via a mobile (cellphone) browser?

  8. #7
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Quote Originally Posted by ravage, post: 227522
    is it even worth coding a mobile css? i'd say yes for a tablet because you have a larger screen to work with but wouldn't it be better just to develop a dedicated app if you're really that worried about people being able to connect to your content via a mobile (cellphone) browser?
    Why? If your existing code is laid out properly, you could create a mobile version with less than 20 lines of CSS. Then, you don't have to worry about cross-OS coding, approval processes, extra marketing, etc.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:16 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com