Results 1 to 25 of 34
Nov 3, 2013, 09:22 #21
- Join Date
- Jan 2003
- Hampshire UK
- 179 Post(s)
- 6 Thread(s)
There is no version of IE for the actual mac system (apart from IE5 mac which died ten years ago).
so if i have a div called abc, and i want to center it, do i need to set a width first and then use auto left and right margin?
and what would be the best width to set it to ?
If you want shrunk wrapped content to centre then you can without a width use the following techniques:
1) Make the element display:inline-block and then apply text-align:center on a parent. No width is required.
2) Make the element display:table and use auto margins. No width is required for table elements to center. (IE8+ only)
3) CSS3 flex box. Browser support is not good enough yet.
This one needs a width:
4) For absolute elements give them a width, auto margins and also left:0 and right:0 and they will center (IE8+ only)
so if i have a design that is approximately 724 px and i always want it to be centered and have space on both the left and right sides.
would i use any specific type of positioning scheme?
Hey paul, i'm wondering how do you get the border radius rounded buttons to work in IE any version? 6-8 for example. it works in 9 right?
Read the link below first: