Jump to content
xisto Community
Sign in to follow this  
websey

Div & Tables Well this i would liek to know :p

Recommended Posts

Hi Guys,ok I normally work with Div's as they are a bit prettier in the code view to work with, but i have run across a problem I have had to for the sake of people editing the site built the main infrastructure around a table system and then i have a floating menu !! set as a div tag, but I cant use the absoloute position command as it does not reallly work on t his site...Well my question is I have a table layout and want to make sure that teh Div stays exactly where it is over all resoloution changes which it doesnt..I have googled this and the only help i have found turns the Div into a holding box for an image and then takes away all the other Div elements....Well normally you can then align a Div inside a Div but i cant do this is the Div element has been reduced....This may not sound right and if it doesnt tell me and i will up load the site and you will see what i mean..The other way i have looked at doing it is to have the menu set as a background gfx on one of the tables... but then the problem with that is that it does not always align niceley...well that is my quandry guys if you can help i will be very greatful but if not dont worry and i will just have to change the layout of the site all together....Anyway cheers guyswebsey

Share this post


Link to post
Share on other sites

Put all the divs into another div (for example with an id="wholepage" and set a width and min-height for it. Then you can float the divs andd watch for the borders of the #wholepage so you can align them. And also you need this piece of code for IE and some old browsers:

html, body {	margin: 0;	padding: 0;	height: 100%;}body 	{ text-align: center; }#wholepage 	{ text-align: left; }

Tables are just a pain, don't ever use them except if you have something to show and you need table to view them right. They take too much time to load and after a few days you find yourself having tables in tables and them all in one big tabel so it's all pain... too damn complicated!
Edited by baniboy (see edit history)

Share this post


Link to post
Share on other sites

Hi Cheers,Bani Boy, the main problem was within IE so i think you may have just solved me a whole lot of headaches :P thanks...To be honest my thoughts on tables are the same as yours as you may have noticed lol i hate them and i can understand usign them 5 years ago but not now :Danyway cheers for the help again guyswebsey

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.