Jump to content

Resizable Element


mostafatalebi

Recommended Posts

Let me say that I have a full-width bar with the height of 200px. A login form is exactly on the rightmost region of the bar. Naturally when a user with size of 1024*768 enters the site, due to the fact that design is originally done for high-res monitors, the login form would be off-screen and the user has to scroll rightward in order to see the form, which is indeed awkward. I need a script to handle this change, when a user enters the website with 1024*768 screen, the screen move the login form some distance leftward so it gets placed exactly on the rightmost of the screen again.

look at this website:

 

http://forum.majidonline.com

(the language is persian so just pay attention to the topmost fixed full-width bar.)

Link to comment
Share on other sites

Sounds like you're approaching this the wrong way round; you need to change the styles so that the website is by default fit for 1024x768, but then allowed to stretch for larger monitors. Generally this can be done by specifying a min-width instead of a width, however I can't say on what elements because you're not posting your mark-up.

 

There isn't really a 'one size fits all' solution to this, because it's not just the header wrapper that needs to grow, but you have to consider every single individual element within the header wrapper as well. Again though, we need to see what you have in your header to know what you need to do.

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.