CodingBrowser Compatibility

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Peter (BOUGHTONP)  
 To:  ANT_THOMAS      
39649.8 In reply to 39649.1 
quote:
...in one browser and something else in another? Is that even the right way to do it?

No, not least because you don't know what's going to happen with the next release of that browser, and you don't want to constantly be faffing around with the rate Google and Mozilla are incrementing their versions these days.


quote:
Anyone know of a reasonable guide to get this right?

Make sure the very first line begins with "<!doctype html>" - that is, no blank lines, no spaces, nothing before those fifteen characters, and no other alternative set of characters (some other versions also work, but not all, and there's no benefit to being more verbose than necessary).

That doesn't actually solve anything, it just makes sure you're working from a constant base (i.e. the browsers are [attempting to] obey the standards, rather than doing their own things).

Understanding how margin and padding are applied/combined helps, and that when you're setting "width" you're controlling the width of the content of that element (not of the element itself).
0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  Peter (BOUGHTONP)     
39649.9 In reply to 39649.8 
Isn't it <!doctype html> ?

quote:
Understanding how margin and padding are applied/combined helps, and that when you're setting "width" you're controlling the width of the content of that element (not of the element itself).


code:
* {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


Often makes life easier. Obviously can be applied more specifically if needed. This thing is an example of where border-box can really simplify the HTML.
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  af (CAER)     
39649.10 In reply to 39649.9 
Oh, didn't realise that was actually supported now.

(dance)
0/0
 Reply   Quote More 

Reply to All    
 

1–10

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats