Catriona McLeod Posted November 25, 2006 Share Posted November 25, 2006 Is it possible to divide a webpage into three sections with variable width margins and a fixed width central section (600px) without using a centrally aligned table? Are there accessibility issues with nesting centrally aligned tables for visually impaired users? I'd appreciate any help.Catriona Link to comment Share on other sites More sharing options...
real_illusions Posted November 25, 2006 Share Posted November 25, 2006 yeah..very possible indeed3 coloumned div layout, with the 2 side coloumns a fixed width and set to to float to the left and right, and the center coloumn a fluid width of say 70%. Link to comment Share on other sites More sharing options...
Catriona McLeod Posted November 26, 2006 Author Share Posted November 26, 2006 Thank you but I want variable width side columns and a fixed width central column without using a centrally aligned table. Link to comment Share on other sites More sharing options...
real_illusions Posted November 26, 2006 Share Posted November 26, 2006 yeah..also as easy.25% - 50% - 25% Link to comment Share on other sites More sharing options...
jlhaslip Posted November 26, 2006 Share Posted November 26, 2006 Check this out: http://w3schools.invisionzone.com/index.ph...ost&p=48458or http://www.csscreator.com/version2/pagelayout.php Link to comment Share on other sites More sharing options...
Catriona McLeod Posted November 26, 2006 Author Share Posted November 26, 2006 Maybe I'm missing something but if you set the column widths as percentages, surely the actual width of the columns depends on the width of the browser window in which the page is opened. I want to set the central column at 600px independant of the size of the browser window and without using a centrally aligned table. Is this possible?I appreciate your help.Catriona Link to comment Share on other sites More sharing options...
holmedwa04 Posted November 26, 2006 Share Posted November 26, 2006 If you usee a percentage, it will be proportional to the size of the broswer window unless there is an image that is bigger which will force scroll bars. And pixels will be the same size no matter what size screen someone has and how big there browser is. Link to comment Share on other sites More sharing options...
jlhaslip Posted November 27, 2006 Share Posted November 27, 2006 Is it possible to divide a webpage into three sections with variable width margins and a fixed width central section (600px) without using a centrally aligned table? Are there accessibility issues with nesting centrally aligned tables for visually impaired users? I'd appreciate any help.CatrionaWhat are you referring to as "variable width margins"? The fixed central column is easy enough. Set body {width:600px; margin-left:auto;margin-right:auto; text-align:center;}. Then reset the margins on the child elements after this to get left-aligned or whatever, but that should centre the Body regardless of the window size. Now if you could define the "variable width margins", we can answer this question better, maybe. Link to comment Share on other sites More sharing options...
Catriona McLeod Posted November 27, 2006 Author Share Posted November 27, 2006 Set body {width:600px; margin-left:auto;margin-right:auto; text-align:center;}.How unbelievably simple! I wonder why the small charitable body that I work for has spent over £4500 on a web developer who doesn't know this. Our project has been delayed by eighteen months because he was unable to implement a centrally aligned design and refused to use tables (with good reason maybe). Looking the CSS section I see that text within the body can easily be set within right and left margins.The variable side sections are immaterial as they have no content and can vary according to the size of the browser window.Thank you so very much. Tomorrow I'm going to kick ######. And ask for a pay rise!Catriona Link to comment Share on other sites More sharing options...
Catriona McLeod Posted November 27, 2006 Author Share Posted November 27, 2006 I apologise for using a forbidden word - it seemed innocuous when I posted it. My enthusiasm must have got the better of me. Catriona Link to comment Share on other sites More sharing options...
jlhaslip Posted November 27, 2006 Share Posted November 27, 2006 Pass along some of that pay raise to homeless coders ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now