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.
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    New Coder
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    Hey guys, as far as CSS resets are concerned, I'm trying to implement this:

    Code:
    *{margin:0;padding:0;}
    As far as I understand this, this code will reset the margin and padding of all elements. After which, I set margins and padding for the elements that I wish to change.

    Unfortunately, I am still seeing differences in how IE, Chrome, and Safari render my page. Are there other parameters that I should reset?

  2. #17
    Regular Coder
    Join Date
    Sep 2011
    Posts
    343
    Thanks
    3
    Thanked 37 Times in 37 Posts
    As far as IE compatibility goes, is there another way to apply a gradient to the menus other than filter:?
    Sure, just use a gradient image as background. Here's a free online gradient maker: http://www.grsites.com/generate/generator/5000/.

    Are there other parameters that I should reset?
    I do resets like this:
    Code:
    * {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 100%;
        font-size-adjust: none;
        font-stretch: normal;
        line-height: 1.4;
        vertical-align: middle;
        border-collapse: collapse;
        border-spacing: 0;
        quotes: none;
    }
    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }
    Do note that you will have to check your whole site with a CSS reset, because it may change the rendering of quite a few matters, as you can imagine. And of course, the reset should come before all other CSS declarations. Finally, don't forget to give fonts a different line-height as well, if you give them a different font-size, like in this shorthand:

    Code:
    h4 {
        font: bold 1.8em/2.2em Verdana; /* line-height is second */
    }
    I guess the rest of your problems are solved or did I miss any remaining questions?

  3. Users who have thanked Frankie for this post:

    iksfcrc (02-09-2013)

  4. #18
    New Coder
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    Thank you Frankie!

    You've been most helpful.

    I'm sure I will run into some other problems due to my inexperience, but I think I have it handled pretty well right now.

  5. #19
    Regular Coder
    Join Date
    Sep 2011
    Posts
    343
    Thanks
    3
    Thanked 37 Times in 37 Posts
    Quote Originally Posted by RaRgAng View Post
    widely used by web developer.
    And the contribution of your post being what exactly, apart from that you now have reached 10 posts and can thus have a signature with a link to your business?


 
Page 2 of 2 FirstFirst 12

Posting Permissions

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