![]() |
| ||
| How to make this layout using tableless Divs 1 Attachment(s) Hi guys, Please refer to my attachment, I am really facing problems trying to make this layout tableless. 1. The top of the right content box will overlap the Banner Picture 2. Te Left Content will have shading on top and shading at the bottom as background 3. The footer will automatically append to the bottom of the Left and Right Content box. Currently, I am facing problem due to the fact that, i do absolute positioning on the main divs such as banner, header, right container, left container, so when i place a separate div as the footer after loading the left and right container, the footer appears at the top of the page instead of below the left and right container i think it's because i do absolute positioning. If I dont do absolute positioning, how can I perform the effect of overlapping of right content box over the banner? Lastly how should I design the left container to always have the shading background at the top and bottom of the contents, without hardcoding per page. I want the Left container to populate as long as possible when contents are entered into it with the middle parts as white background and as it is ending, insert the bottom shadow. Please help me out on this, Thank you very much. |
| ||
| Re: How to make this layout using tableless Divs I never do spoon feeding, but since i'm in a good mood i'll just give you the idea... on your layout request.. i provided the comments so you'll easily glide through... just adjust the styles ok?? p.s. take note of the width.. goodluck... ^__^ *{padding:0
<div id="wrapper"> |
| ||
| Re: How to make this layout using tableless Divs thanks for your reply, however, this is just the basic setup which i already have. the problem i am really facing is the overlapping of the right box on top of the image and the left box having expandable content with top background and bottom background as the shadow.. |
| ||
| Re: How to make this layout using tableless Divs It's never going to work with absolute settings. Different browsers will render it differently. Different screen resolutions and window sizes also cause trouble with absolute settings. Use percentage of page settings instead. You may also be seeing the IE/FF incompatibility. Placing both size styles (width, height) and surrounding styles (margin, border, padding) in the same tag or style causes all kinds of strange fit problems. It is the nature of a div structure to fall apart if it won't fit. You will never create a div structure that holds its shape under all conditions. The reason it doesn't work is that there is no equivalent to the tr tag in div structures. Browsers float div tags wherever they will fit. If you absolutely need the same structure to hold together for all window sizes and screen resolutions, use a table. It is not deprecated. There is a misconception about what is good web practice and what is not. What is discouraged is using table tags to create borders, margins, and padding around website objects. At one time, this was the only way to put margins around pages. The reason some people don't want tables used for page structuring is that it is confusing to people using a speaking reader for the blind. But if the table is used for just the two parallel columns, and not the rest of the page, it works well, and is not too confusing, since it is a table of sorts. |
| ||
| Re: How to make this layout using tableless Divs 1 Attachment(s) MidiMagic, thanks for reading my post again.. Just giving a last try to see if you could help me out.. please see attached on what i have done and also my code to see if you could help.. <style> |
| ||
| Re: How to make this layout using tableless Divs i think this link will answer your problem... http://www.practicalecommerce.com/ar...ners-with-CSS/ just watch the video.. |
| ||
| Re: How to make this layout using tableless Divs Make sure the styles for the top, middle, and bottom have widths of 100 percent in them, and margins and paddings of 0. If you want margins or paddings on any of these, nest more divs inside them with the padding and margin styles wanted. <div id="wrapper"> |
| ||
| Re: How to make this layout using tableless Divs Quote:
Thanks for the video, it gave me the idea to implement what i wanted. Really appreciate it. |
| All times are GMT -4. The time now is 11:39 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC