Announcement

Collapse
No announcement yet.

CSS help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by jont
    ...good practice to zero everything out and then build up from scratch...
    Do different browsers assume different defaults?
    What are they then as default if not zero?

    Comment


      #17
      Some settings do vary slightly - the most common is the line-height setting which is noticeable between IE and Mozilla - a common hack is to declare the line-height specifically if you need to create a pixel perfect layout .. that would be set to 1 not zero obviously


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #18
        Originally posted by drounding
        Do different browsers assume different defaults?
        What are they then as default if not zero?
        Personally, i think the main advantage of zeroing these values is that you set as standard what each style should be and what it should use. What one browser calls padding, another calls it margin. If you set these yourself, there is much less chance of confusion and a design going titsup.

        If you add a padding to a style and the browser has a default margin added, you can often get unexpected results which appear confusing (to me anyway). Don't worry about which browser does what and what settings it uses, zero the lot and set it yourself. You are then in complete control, which is what it's therefore IMO. If you are going to take control with CSS, then take full control.

        Comment


          #19
          Originally posted by leehack
          If they are set to "0", then leave them as that. They may be resetting marging settings they inherit from parents. The things mentioned above, do not change any of the current settings, they are merely setting them in a shorter and more efficient manner. Never delete a setting, you could end up with a nightmare on your hands, we are just telling it the same settings in a more efficient manner.
          Yep ... one little change, and it mucked up most of my design today!

          Decided to add a custom setting that was specific to the box I wanted to change, and applied it to it.

          I must say, I've learnt a hell of a lot from this thread about how actinic puts things together with the CSS -- went and bought a book today!

          Thanks again guys...

          Cappa

          Comment

          Working...
          X