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 4 of 4
Like Tree1Likes
  • 1 Post By RDesignista

Thread: Browser Compatibility

  1. #1
    Junior Member
    Join Date
    Feb 2015
    Posts
    1
    Member #
    42813

    Browser Compatibility

    Hello Everyone.

    I am new to programming and I use to have my design portfolio site hosted by WIX.

    I decided to keep some of the same design elements, but I wanted to learn how to code my own site about a month and a half ago.

    I used HTML5 and CSS3 to code my portfolio site, with some javascript.

    It isn't the prettiest site, semantically, but I started using the W3C Validator to check my code.

    Unfortunately, when I first started coding, I only coded the CSS aesthetically for Firefox.

    It's not far off in Safari but I have positioning issues in other browsers.

    What is the best option for fixing these positioning issues and such to match how it looks in Firefox?

    I'm hosting through godaddy.com and I like how it looks in Firefox so I don't want to mess that up when trying to make sure that it looks the same in other browsers.

    My website is: vslateart.com.

    I'm hoping I don't have to recode the entire site.

    Any suggestions?

    Vince

  2.  

  3. #2
    Senior Member RDesignista's Avatar
    Join Date
    Feb 2012
    Location
    Coconut Tree City
    Posts
    822
    Member #
    30921
    Liked
    123 times
    That's interesting you decided to code from scratch. It's fine if you do, but you have to realize what you're experiencing now are growing pains. And you'll probably be in the "pain" for a while because of all there is to learn.

    So first and foremost, when you make websites, you're making for the users, not yourself. You already know this in principle, but I think you should extend this to your testing process. Yes, testing, as in, when you finish, you need to not only do the w3c validator to check your code (important for a beginner), but also look at it across browsers... (and eventually, devices).

    Take a look at the attachment. This is your site on my 17" screen, Chrome, Windows 7.

    my-view.jpg

    Notice it's not centered.

    Now, luckily, I was able to immediately spot the problem. You put padding on your html element. Remove this. Padding should be on your physical elements, like 'container'. And generally, never use padding to create proper positioning. Padding is used to give space inside an element. Margin is used to give space outside an element. You can do 'absolute' positioning, but that is a more advanced method.

    I hope that helps.

    Final tip:

    Always be learning about browser nuances. It's unfortunately, a requirement to make websites, because a Firefox-only website or a Chrome-only website is useless, at least commercially.

    So make sure you have atleast these:

    - Google Chrome
    - Mozilla Firefox
    - Safari (Windows has a discontinued version too)
    - Opera (it runs almost exactly like Chrome and Safari cause it's webkit, but might as well have it too)
    - Internet Explorer

    extras:
    - Internet Explorer 9 (it supports only some HTML5, but a decent enough amount of people use it)
    - Internet Explorer 8 (no HTML5, and a lot of people stopped supporting it, but for me, it's the lowest I go for compatibility)
    - default Android browser, default mobile Safari (even if your site aren't mobile-compatible, you should still check to make sure it doesn't look bad on these)

  4. #3
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by RDesignista View Post
    Padding is used to give space inside an element. Margin is used to give space outside an element.
    Every once in a while, I read something that totally lights up my brain and clarifies things that I have known but never pinned down and defined.
    This is the most concise and understandable explanation of padding and margins and how they should be used that I have ever come across.
    Thank you!
    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!

  5. #4
    Senior Member RDesignista's Avatar
    Join Date
    Feb 2012
    Location
    Coconut Tree City
    Posts
    822
    Member #
    30921
    Liked
    123 times
    Quote Originally Posted by AlphaMare View Post
    Every once in a while, I read something that totally lights up my brain and clarifies things that I have known but never pinned down and defined.
    This is the most concise and understandable explanation of padding and margins and how they should be used that I have ever come across.
    Thank you!
    You're welcome.

    I was a teacher for 2 years .


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 11:46 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com