Can anyone help with an html+css to give the columns in the right order for SEO. I want the middle column (which appears 3rd in my html) to be first. I have fixed width columns and fluid middle. . . Point me in the right direction???
Thanks
Kate
Page 1 of 1
3 column html+css with proper source order (2-1-3)
#2
Posted 08 February 2010 - 05:22 PM
You need to rewrite and do it with css, the following would work
html
css
The brilliance of the code above, is that it is so easy to edit the columns, you can add a different colour to each, add different widths and any other css attributes. You need to keep the "float:left" as it makes all of the columns appear in a line.
Hope that helps
html
<div class="column" id="left"> content </div> <div class="column" id="middle"> content </div> <div class="column" id="right"> content </div>
css
.content {
float:left;
width:300px;
}
#left {
margin-right:25px;
}
#middle {
margin-right:25px;
}
#right {
}
The brilliance of the code above, is that it is so easy to edit the columns, you can add a different colour to each, add different widths and any other css attributes. You need to keep the "float:left" as it makes all of the columns appear in a line.
Hope that helps
#3
Posted 08 February 2010 - 05:32 PM
Thanks but have I explained myself. . . ? Columns left and right will just have pictures in them. The centre column will have all the text - therefore for SEO and search purposes I want the text (the middle column) to be first in the html..
<div id="center">
Blah blah
</div>
<div id="left">
pictures
</div>
<div id="right">
pictures
</div>
Will what you have given me work?
cheers
Kate
<div id="center">
Blah blah
</div>
<div id="left">
pictures
</div>
<div id="right">
pictures
</div>
Will what you have given me work?
cheers
Kate
#6
Posted 09 February 2010 - 01:15 PM
There is a way you can do this, although it's not as clean as I'd like. What you need to do is enclose the main content (middle) and the left column in a div of their own, and float it left. Float the right column to the right, then position the main content and left column within their own div like so:
Hope that helps
<div id="2col">
<div id="centre">
<!-- main content -->
</div>
<div id="left">
</div>
</div> <!-- 2col ends -->
<div id="right">
</div>
#2col {width:720px;float:left;}
#centre {width:480px;float:right;}
#left {width:240px;float:left;}
#right {width:240px;float:right;}Hope that helps
Bloomin' good web design and copywriting from a branch of design
Refreshing web design articles and more
Microsoft is not the answer. Microsoft is the question. NO, or Linux, is the answer.
Refreshing web design articles and more
Microsoft is not the answer. Microsoft is the question. NO, or Linux, is the answer.
#7
Posted 09 February 2010 - 01:26 PM
notbanksy employs the Doug Bowman method - good to see
/Add HTML or code editors to our big list of editors
/Know of a shopping cart? Add it to our Complete list of shopping carts
/Help keep WDF a nice place - please use the Report button to tell us about spam or scam!
/Expressioneengine Pro Network member
/Links are advertising not optimising!
/Know of a shopping cart? Add it to our Complete list of shopping carts
/Help keep WDF a nice place - please use the Report button to tell us about spam or scam!
/Expressioneengine Pro Network member
/Links are advertising not optimising!
#8
Posted 09 February 2010 - 01:35 PM
Who's this doug bowman then? I was just using my noggin!
Bloomin' good web design and copywriting from a branch of design
Refreshing web design articles and more
Microsoft is not the answer. Microsoft is the question. NO, or Linux, is the answer.
Refreshing web design articles and more
Microsoft is not the answer. Microsoft is the question. NO, or Linux, is the answer.
#9
Posted 09 February 2010 - 01:54 PM
He's one of the original "CSS gurus" - watch this video about CSS layout techniques - he demonstrates the same method in there
/Add HTML or code editors to our big list of editors
/Know of a shopping cart? Add it to our Complete list of shopping carts
/Help keep WDF a nice place - please use the Report button to tell us about spam or scam!
/Expressioneengine Pro Network member
/Links are advertising not optimising!
/Know of a shopping cart? Add it to our Complete list of shopping carts
/Help keep WDF a nice place - please use the Report button to tell us about spam or scam!
/Expressioneengine Pro Network member
/Links are advertising not optimising!
Share this topic:
Page 1 of 1

Help





MultiQuote













