Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Banned
    Join Date
    Oct 2003
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Um What is CSS lol (Detect Resolution HELP)

    Hi I am building a site (of course) and obviously after reading for the past two hours realize I know nothing.

    I want my site to fit in all resolutions. First I tried to build the site in 800x600 to accomodate the other resolutions. Yes it fits in 1024 but its all the way to the left and much room to the right remains. How does one simply (if possible) create that CSS file needed, then what do I do with it. And what script is needed to detect screen resolution and what do I do with that. Sorry if I sound like a retard. Please help and thanks in advance.

    I just want my site to adjust and center to the different resolutions. I will absolutely love anyone that helps me.

    Thanks again,
    Dom
    Last edited by dominickm; 01-08-2004 at 05:46 AM.

  • #2
    Regular Coder Skyzyx's Avatar
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here's what I do:
    • Tell the body tag to text-align:center;
    • Create the element you want centered (generally a div in standards-compliant design), and give it an explicit width (width:720px)
    • On that same element, set the top and bottom margins to whatever you want. Set the left and right both to auto.
    • Tell that element to use text-align:left to cancel out the effect the body tag will have on the text.


    Voila! A centered div!

    Creator of SimplePie and Tarzan AWS, co-founder of WarpShare, co-built the Y! Messenger website, usability-focused, and an INFJ personality.

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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