Jump to content

Need help with my site layout


dpacmittal

Recommended Posts

I am making a chat site and I have basically 3 divs for displaying the messages, user list, and a textarea to send messages. These were positioned absolute and were looking fine until I viewed the site on another computer with different resolution. Also I had set the height and width in pixels but that again was a problem if I viewed the site on another computer.

 

I started setting the height and width in percent but it isn't working. Width was working fine but height is not working. What am I doing wrong? I set the height and width both to 80%.

 

edit: When absolute positioning was still enabled, it was working but when I removed it, it stopped rendering the current height.

Sorry, if this question is too stupid.

Link to comment
https://forums.phpfreaks.com/topic/151704-need-help-with-my-site-layout/
Share on other sites

People who use giant monitors get used to stuff looking smaller. I design my sites so that it all fits in a 1024x768 screen but looks best in a 1440x900 or so. Try playing with min-height: and min-width:

 

As far as the 80%, it has to be 80% of something, like its container. Make sure the container has a height value, I believe the body will default to just screen size.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.