View Full Version : Divs Or Tables?!?!?!


punkinnfunkin61
07-19-2004, 09:15 PM
alright guys so like i herad that for basic page layout you can use tables OR divs so i decided to go with the divs, and like i was like alright thiese things are alright but then they started ^^^^^^^^ up on me!!! like on my computer they are perfect but when it comes to other peoples computer they disalign and its really wierd! i have no idea how to fix it!!! another thing how do i get it so that the screen doestn hide my layout when you minimize the screen, its been getting really frustrating!!! someone check it out and give me some ideas here!!!! plz!!!

:wolf: punkinnfunkin61
site is www.hushhearthea.blogspot.com

erictheman
07-20-2004, 12:12 AM
Your better off using tables considering the fact that you have a huge amount of positioning in your coding. It's very ugly. All I can say is clean up your code, and you won't be having so many problems.

punkinnfunkin61
07-20-2004, 01:42 AM
alright, so im not very advanced at this lol obviously so like oculd you give me an example please if you would.

erictheman
07-20-2004, 04:04 AM
Well rather than putting a <div align="center"> around each <div> tag, why don't you just put it around the whole code.

And as for that positioning, some people like to use what's called a <div align="container">, which is like the body tag because it's the base element for the whole code. From there, you could surround your code inside the container and to align your columns using what's called a float property (look it up). What you do in your coding is you put the middle column first in your code, then the left or right sides next by giving them that float property.

punkinnfunkin61
07-20-2004, 01:29 PM
alright thank you for the insight im gonna check that stuff out and see what comes of it!

:wolf: punkinnfunkin61

pb&j
07-20-2004, 02:01 PM
many people would say to go for DIV for layouts considering TABLES were originally meant for tabular data (info) instead of layouts.

it seems you have a good start, but one thing i noticed is that you are centering things AND using css positioning. you will have to choose one or the other way.

you are also missing some PX parts like here...
top:99px; left:0px; width:400px; height:30px;

for screen adjustment, you may want to use percentages for some things instead of fixed pixels.

neonick5647
07-20-2004, 06:25 PM
it's not very nice to call someone's site ugly. I thinks its very oringinal, and besides, i think its a personal site. but if it is a private site then does it really matter how it looks on other computers? Or, if your friends are going to see it, you might want to swith to tables. (i have to do this with my site) :) :) :)

punkinnfunkin61
07-21-2004, 09:51 PM
k thnx much, ok so that may be why its disaligning the Px thing but um one other thing is im a re lol so like could you give me one quick example of percentages cuz i have looked and not found ne examples of it anywhere that ive looked so if you would! that would be very helpful.....!

:wolf: punkinnfunkin61

ps the tables, they scare me ^^^^!