www.webdeveloper.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 20

Thread: adjust website to different screen resolutions

  1. #1
    Join Date
    Apr 2010
    Posts
    78

    adjust website to different screen resolutions

    Hi,
    I built my website on 1024x768 but when i see it on other computers with different resolutions,it doesn't appear normaly with a large blank place on the right.How can i adjust my website on every resolution?

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,217
    Choosing Dimensions for Your Web Page Layout:

    http://www.elated.com/articles/choos...b-page-layout/
    How to create flexible sites quickly using standards like CSS and XHTML: http://www.ibm.com/developerworks/web/library/wa-rapid/
    In Search of the Holy Grail: http://www.alistapart.com/articles/holygrail/

    Care With Font Size: http://www.w3.org/QA/Tips/font-size

  3. #3
    Join Date
    Mar 2010
    Posts
    2,803
    Some things you could do are:

    1) have all your page content contained inside a 'wrapper' div which irself is either a fixed width or percentage width.

    2) use css to centre the wrapper div inside the <body>

  4. #4
    Join Date
    Apr 2010
    Posts
    78
    can you give me the exact code in order to fix it?

  5. #5
    Join Date
    Mar 2010
    Posts
    2,803
    In your first post you said:

    I built my website on 1024x768.........
    I now find it hard to believe that you actually built a website if you need to ask for the exact code to put all your content for a web page inside a <div> and then centre it.

    How did you build your website?

  6. #6
    Join Date
    Apr 2010
    Posts
    78
    Quote Originally Posted by tirna View Post
    In your first post you said:



    I now find it hard to believe that you actually built a website if you need to ask for the exact code to put all your content for a web page inside a <div> and then centre it.

    How did you build your website?
    This may not be my problem.I just asked about the code to adjust for every resolution automatically.I didn't demand something else.

  7. #7
    Join Date
    Mar 2010
    Posts
    2,803
    Quote Originally Posted by jojo13 View Post
    This may not be my problem.I just asked about the code to adjust for every resolution automatically.I didn't demand something else.
    and I told you how I would do it, in general terms, without actually writing out the code. I assumed since you built the site that is something you should be able to do without any problems in about 2 minutes.

    It's only an extra 2 lines of html code and 3 lines of css code.

  8. #8
    Join Date
    Apr 2010
    Posts
    78
    Quote Originally Posted by tirna View Post
    and I told you how I would do it, in general terms, without actually writing out the code. I assumed since you built the site that is something you should be able to do without any problems in about 2 minutes.

    It's only an extra 2 lines of html code and 3 lines of css code.
    I can't understand.Is it so easy to adjust website in different resolutions?I know the basics of CSS not everything especially on changing positions of text.I am not a web guru.That's why i ask.

  9. #9
    Join Date
    Mar 2010
    Posts
    2,803
    Quote Originally Posted by jojo13 View Post
    I can't understand.Is it so easy to adjust website in different resolutions?I know the basics of CSS not everything especially on changing positions of text.I am not a web guru.That's why i ask.
    If the bit in red is true and you also actually built the website like you said in post #1 then imo you must already know how to centre a <div> like I suggested in point 2 of my original post.

    If you need the actual code, then if you google for it you will get a lot of hits showing you how.

    Also, there is no way you are going to convince me that you actually built the website like you said in post #1 and that you don't know how to put the contents of your web pages into a div. It's only 2 lines of html code.

    If you need anymore help, hopefully someone else will be able to help you.

  10. #10
    Join Date
    Apr 2010
    Posts
    78
    Quote Originally Posted by tirna View Post
    If the bit in red is true and you also actually built the website like you said in post #1 then imo you must already know how to centre a <div> like I suggested in point 2 of my original post.

    If you need the actual code, then if you google for it you will get a lot of hits showing you how.

    Also, there is no way you are going to convince me that you actually built the website like you said in post #1 and that you don't know how to put the contents of your web pages into a div. It's only 2 lines of html code.

    If you need anymore help, hopefully someone else will be able to help you.
    First of all,why do you make offence on me?I know how to center statements <center>...</center>.But what's the reason of centering my text?Will this adjust on every resolution?

    Also,this forum exists for helping others.Is it so difficult to answer me what you mean?

    Honestly,i cannot understand why so much offence.Sometimes,it's better not to talk.Anyway.

  11. #11
    Join Date
    Jan 2009
    Posts
    3,346
    <center> is not used anymore. Use a <div> instead. Then use CSS to center it.

  12. #12
    Join Date
    Apr 2010
    Posts
    78
    Quote Originally Posted by criterion9 View Post
    <center> is not used anymore. Use a <div> instead. Then use CSS to center it.
    Why center it?This will adjust website on every resolution?

  13. #13
    Join Date
    Jan 2009
    Posts
    3,346
    That is how many sites achieve a mix between static and fluid widths. Did you look at the links posted above? Lots of info there to digest...

  14. #14
    Join Date
    Apr 2010
    Posts
    78
    Quote Originally Posted by criterion9 View Post
    That is how many sites achieve a mix between static and fluid widths. Did you look at the links posted above? Lots of info there to digest...
    I looked but they didn't help me.Thanks for your help.

  15. #15
    Join Date
    Mar 2010
    Posts
    2,803
    Quote Originally Posted by jojo13 View Post
    First of all,why do you make offence on me?I know how to center statements <center>...</center>.But what's the reason of centering my text?Will this adjust on every resolution?

    Also,this forum exists for helping others.Is it so difficult to answer me what you mean?

    Honestly,i cannot understand why so much offence.Sometimes,it's better not to talk.Anyway.
    I did not intend to offend you.

    I didn't mention centering text at all and so I think you either didn't read what I posted or you did not understand it.

    What I suggested was putting all your content (whether it is text, images, tables or anything else it doesn't matter) into a <div> and then use css to center it. I didn't mention using the <center> element at all since, as criterion9 mentioned, it is deprecated. Criterion9 then went on to suggest the same solution I suggested.

    What I find puzzling is that you said you built the website but you then seem to have difficulty doing something that imo is really basic and put all the web page content into a <div> and centre it.

    If you feel my suggestion is not a soluton for you, then I have no issue with that because that is your choice. All I did was offer a description of how I would solve your problem and it appears by your replies you seem to be annoyed that I haven't provided you the actual code as well.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles