This is a discussion on "Help repositioning content div" within the Starting Out section. This forum, and the thread "Help repositioning content div are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Help repositioning content div
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Help repositioning content div
I hope somenone can point me in the right direction. I am currently working on a site http://www.discountlaptopsadvisor.com and I am quite pleased with the way thing are going so far. I have decided to use a tempplate from oswd, which I am very happy with apart from one thing.
In the HTML, I want the first content div to appear in the html to be the main content. However when I try and do this, the position of the left and right columns change relative to the main content div. They start when the main content div finishes. I believe i need to change the stylesheet, but I have realised that my knowledge of CSS has huge gaps, and the more I go into it the less I seem to know. The reason for doing this is twofold. SEO to get the content higher up the html and the adsense placement if the main content appears first will contain the highest paying ads. If someone can point me in the right direction I would be most grateful I attach the open source index.html and stylesheet for info. Best Regards, Mike |
|
|
|
||||
|
Re: Help repositioning content div
could you link us? a lot easier
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Help repositioning content div
Not sure what you mean by link us, is this something extra to putting the link to the website in the post? I scanned the FAQ for postings and couldnt find what "link us" meant
sorry to show my ingnorance Ive only been a member for a couple of hours... Thanks for the reply and let me know if I need to do anything more. |
|
||||
|
Re: Help repositioning content div
sorry man,
I meant could you upload it to net, to a hosting company so we can just view it. easier than downloading files, it discourages people from helping if they have to download sutff.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Help repositioning content div
Its done! the test page is at http://www.discountlaptopsadvisor.com/test.htm It is the template from the oswd, and while the HTML has the main content div in the position I would like, the relative positioning of the left and right columns is thrown out of whack.
Sorry I was a bit slow on the uptake before, mate, I had a long day yeaterday and it just catching up with me. |
|
|||
|
Re: Help repositioning content div
To change the order of div's you have to change to absolute positioning.
I don't think I have all the dimensions of the three divs exactly correct. Left side is fine, right side is fine but the center is now set to 55% to keep it fluid. See if this works ok. Here is the css for the three css elements involved:
See how this works for you. |
|
|||
|
Re: Help repositioning content div
Thanks for your efforts on this, I will give it a go and see what happens
best Regards, Mike |
|
|||
|
Re: Help repositioning content div
After reading through some of the excellent resources on this site, and looking at some of the posts, I believe I have bitten off more than I can chew at this moment in time given my inexpeerience with CSS. Content first layouts clearly exist, and the obvious thing would be to implement one of these straight away.
however I do not have the time to learn how to rework my template and build up my site, so I am going to get on with the site content and see if I can resolve the template issue to get it how I want it in the time I have left over. Just a question of priorities I guess Lchad, thanks for your input but the center column just diappeared when I implement ed your CSS into the stylesheet. Many Thanks, Mike |
![]() |
| Tags |
| css, html, web design |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expandable Content Script (Swtich Content) | Matc | JavaScript Forum | 0 | Apr 8th, 2008 10:53 |
| Content Placement + Content Dividing | josephman1988 | Website Planning | 2 | Jan 22nd, 2008 05:02 |
| Layering content on content in CSS? | wickedmoon | Web Page Design | 1 | Sep 10th, 2007 15:23 |
| CSS content gets cut off | gwx03 | Web Page Design | 1 | Dec 15th, 2003 05:57 |