Results 1 to 2 of 2

Thread: A few general questions

  1. #1
    brw2009 Guest

    Question A few general questions

    Hey all,

    I am fairly new to Web Programming, and if anyone could please take the time to answer any of these questions it would be greatly appreciated

    1. I am designing a web page at the moment, and would like to know, I have a div element at the top of the page with two tables in it with the title of the page and a login/password form...but I would like to know how to make it so when the page is minimised, it changes accordingly, as mine doesnt seen to?

    2. Also, on the same div element, how do i make it so it doesnt actually spread across the whole screen? An example of this is this website, how have they made it so that on the home page at the top of the page is a little panel with the title on it, but it looks really smart with a certain width to it?

    Thank you in advance

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    You mean fluid design so that everything expands or shrinks at different window resolutions?

    Use % for widths of all elements like divs, tables, images, etc. including % widths for side margins and padding so that they total 100%.

    Unfortunately borders cannot use % widths so if you have side borders in px you will need to allow space for them by totalling the % widths to 97% or 98%.

    It can be tricky to get it working as images will resize heights automatically in proportion to the % width if you don't state a height for them, which is a good thing, but it may disrupt the layout for items below.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Web Hosting Recommendations and General Questions
    By kylec72 in forum Web Hosting and Domain Names
    Replies: 1
    Last Post: 10 Sep 2008, 12:08 AM
  2. General Web Design Questions..Where to Begin
    By The_Grudge in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 07 Oct 2007, 12:26 AM
  3. Another new guy with general questions
    By trackfanatic in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 21 Oct 2005, 06:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •