Dec 08, 2008, 5:45 AM
[CLOSED] Css Problem with DataView Example
Hi,
I have added the dataview "with paging" (https://examples1.ext.net/Examples/D...c/With_Paging/) example to a website. Everything works fine but i noticed that when changing the width of the browser the dataview (not the panel) remained in the same position as if the css had been set to "position:absolute". After investigating i noticed that this would only occur if i added "margin: auto;" to the body class eg
Lee
I have added the dataview "with paging" (https://examples1.ext.net/Examples/D...c/With_Paging/) example to a website. Everything works fine but i noticed that when changing the width of the browser the dataview (not the panel) remained in the same position as if the css had been set to "position:absolute". After investigating i noticed that this would only occur if i added "margin: auto;" to the body class eg
body {
width: 892px;
height: 100%;
margin: auto;
padding: 0;
font: 11px/200% verdana, sans-serif, "Helvetica Neue", "Lucida Grande", "Lucida Sans Unicode";
color: #000000;
text-align: left;
}
This is obviously a problem for me since the website must sit in the center of the browser. I also noticed that when i created some table classes it also affected the paging elements of the dataview egtable {
width: 100%;
text-align: left;
}
tr, td {
padding: 10px;
}*/
Any help in resolving these issues would greatly be appreciated :)Lee