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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.