Float Vs Position

Discussion in 'GR Classic Archive' started by Wonderboy, Feb 20, 2007.

  1. Wonderboy

    Wonderboy Well-Known Member

    Posts:
    1,347
    Likes Received:
    0
    Joined:
    May 19, 2005
    Yea mabye i should start doing that. I usually don't check it in different browsers which doing it, i usually check it at the end. Which is a really bad way to do it thinking about it. Then i don't know what causing it to go wrong etc....

    What is it about absolute positioning that makes it look different in different resolutions ?
     
  2. DarkPrince11

    DarkPrince11 Well-Known Member

    Age:
    34
    Posts:
    772
    Likes Received:
    0
    Joined:
    Mar 22, 2006
    Location:
    Deer Park, New York
    The thing about absolute positing is well its absolute. For example, say that in my CSS I state that Block A is absolute and define it to be 50px from the left, and my resolution is 1280x768. So it wouldn't look centered. But in 800x600 the page would look clamped and retarded. Just try it for yourself. You could use absolute if you used a container and stuff. It really just depends on how you use it. Here is an html/css I did a while ago, http://www.desktoptrends.com/360/
    I did everything using absolute but it looks fine no matter what resolution. Its all about being accurate. :)
     
  3. Wonderboy

    Wonderboy Well-Known Member

    Posts:
    1,347
    Likes Received:
    0
    Joined:
    May 19, 2005
    Yes i was going to say, if you use a container/wrapper and everything it should make no difference, but you just pointed that out anyway :)

    Nice site looks really good - how do you get the round content box ? I had a look at the image thats used http://www.desktoptrends.com/360/images/st...ure/content.jpg and it's not rounded, and i see no CSS which would make it round. Is it a border ?
     
  4. Wonderboy

    Wonderboy Well-Known Member

    Posts:
    1,347
    Likes Received:
    0
    Joined:
    May 19, 2005
    Gah stupid Microsoft.

    They create a web browser which is better at rendering CSS than their previous one, yet i don't think it allows the following code:

    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="ie7-style.css" />
    <![endif]-->

    thats just plain annoying!
     
  5. DarkPrince11

    DarkPrince11 Well-Known Member

    Age:
    34
    Posts:
    772
    Likes Received:
    0
    Joined:
    Mar 22, 2006
    Location:
    Deer Park, New York
    hmm Are you sure you're linking to the file correctly? That code is exactly the same as the one used on my 360 page. Also its the image that has a border. Its barely noticeable because I cropped it to the very exact pixel. But when its put on the entire page, it can be shown with the glory of roundness. (I could've also used CSS or javascript ftw... :) )
     
  6. Wonderboy

    Wonderboy Well-Known Member

    Posts:
    1,347
    Likes Received:
    0
    Joined:
    May 19, 2005
    I have used that code as well f or IE 6 before and worked fine, this is the first time i have tryed it with IE 7 and it's not working. I'll look at it again tomorrow.
     

Share This Page