![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a two column layout - this is the regular story about a sidebar and a column containing the main content. In the HTML source I've put the main content div first and the sidebar div second - This is an important point. I do this because I would like the main content of the site to be at the top of the HTML source (to please screen readers and search bots) But in the browser I would like to show the sidebar to the left of the main content. How do I achieve this? |
#3
| |||
| |||
|
|
I have a two column layout - this is the regular story about a sidebar and a column containing the main content. In the HTML source I've put the main content div first and the sidebar div second - This is an important point. I do this because I would like the main content of the site to be at the top of the HTML source (to please screen readers and search bots) But in the browser I would like to show the sidebar to the left of the main content. How do I achieve this? |
#4
| |||
| |||
|
|
Float the main div to the right. |
#5
| |||
| |||
|
|
The following style sheet does this, for both 2- and 3-column layouts: http://webhost.bridgew.edu/etribou/l.../skidoo_redux/ Check out some of the other layouts on that site too - very useful! |
#6
| |||
| |||
|
|
On Feb 14, 1:42 pm, David Stone <no.em... (AT) domain (DOT) invalid> wrote: The following style sheet does this, for both 2- and 3-column layouts: http://webhost.bridgew.edu/etribou/l.../skidoo_redux/ Check out some of the other layouts on that site too - very useful! Thanks a lot... This is what I'm looking for. Just a few questions: I see that you use three nested div-containers around all your columns. How come a single doesn't do the trick? |
|
I've tried to mimic your code, with only two columns here: http://tws.name/resources/2008/02/sw...elements2.html I've color-coded the three containers. If I remove the CSS for the two inner ones, it seems stil to work. Are they necessary? |
#7
| |||
| |||
|
|
On Feb 14, 1:42 pm, David Stone <no.em... (AT) domain (DOT) invalid> wrote: http://webhost.bridgew.edu/etribou/l.../skidoo_redux/ I've tried to mimic your code, with only two columns here: http://tws.name/resources/2008/02/sw...elements2.html |
#8
| |||
| |||
|
|
I'm slowly getting a better understanding of the CSS and how it works; some of it is included to make the layout work with IE 5 & 6, as well as IE:Mac 5.x and other early browsers. I restricted my concerns mostly to IE >= 6, FF >=2, and Safari >=2. |


#9
| |||
| |||
|
|
, Thomas Watson <w (AT) tson (DOT) dk> wrote: |
|
I have a two column layout - this is the regular story about a sidebar and a column containing the main content. In the HTML source I've put the main content div first and the sidebar div second - This is an important point. I do this because I would like the main content of the site to be at the top of the HTML source (to please screen readers and search bots) But in the browser I would like to show the sidebar to the left of the main content. How do I achieve this? |
#10
| |||
| |||
|
|
dorayme wrote: So simple is it to put the nav first in the html, Seems to be equally simple to put the content first in the html... :-) and let Bob be your uncle Oh! In that case, proceed as desired. |
![]() |
| Thread Tools | |
| Display Modes | |
| |