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.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2010
    Posts
    53
    Thanks
    6
    Thanked 0 Times in 0 Posts

    how do i override chrome's user agent stylesheet?

    Chrome is ignoring my style sheet placing a 40px padding between some text that I did not put there. How can I override this, so that it displays in chrome the way that I want it to?
    I already have *{margin-top: 0; padding: 0; }
    at the beginning, but still chrome is placing the 40px padding where it does not belong.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,875
    Thanks
    6
    Thanked 1,034 Times in 1,007 Posts
    I suspect this is not an issue of Chrome’s user agent CSS but rather of your HTML. Please validate your code and fix any errors you may have. You can’t expect consistent results in different browsers if the code isn’t valid. If yours is, however, then please post your entire code (HTML and CSS) so we can have a look at it.

  • Users who have thanked VIPStephan for this post:

    JMayer (04-06-2011)

  • #3
    New Coder
    Join Date
    Dec 2010
    Posts
    53
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Do you have a link to a code validator? Is there one that will validate unpublished code by copying and pasting?

    I do not have it published online yet.

    I found the problem. Thanks.
    Last edited by JMayer; 04-06-2011 at 11:43 PM.


  •  

    Posting Permissions

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