Question : Browser CSS Alignment

Hey folks,
  On my Master Page I have the code below

In Safari and IE (All) the content inside the placeholder (a Table) aligns horizontaly in the center of the page.

Not in Firefox though.

How do I fix this.
Code Snippet:
1:
2:
3:
4:
5:
6:

Answer : Browser CSS Alignment

Align="center" is deprecated and not recommended to use anymore. You can easily do this with CSS. Simply set the left and right margins to "auto" on a div which has had the width declared and it will be centered.

Just put your div in your page



and put this in your CSS:

#bodybox {
    width: 80% (or fixed width)
    margin: auto;
}

Random Solutions  
 
programming4us programming4us