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 7 of 7
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    105
    Thanks
    12
    Thanked 1 Time in 1 Post

    Mixing CSS Positioning Types?

    Is it possible to use an absolute positioned element inside a layout which is built using relative positioning? I would like to be forewarned, if possible, about any potential issues or conflicts which might arise...

    Thank you.

  • #2
    New Coder
    Join Date
    Feb 2011
    Posts
    69
    Thanks
    11
    Thanked 2 Times in 2 Posts

    Yes

    Hello

    Yes it is you might like this nifty link mate

    http://css-tricks.com/791-absolute-p...e-positioning/

    Peter

  • #3
    Regular Coder
    Join Date
    Jul 2011
    Posts
    105
    Thanks
    12
    Thanked 1 Time in 1 Post
    Thanks, mate. Thats brilliant! Have given that one a good read.

  • #4
    Regular Coder
    Join Date
    Jul 2011
    Posts
    105
    Thanks
    12
    Thanked 1 Time in 1 Post
    Also, is it okay to mix sizes (I have chosen to work in EMs) with percentages for making columns? I was thinking of having my left navigation column of a fixed size (say 20em), then having the rest of the space divided up into % (about 30/70%, just for example) to make it semi-fluid.

  • #5
    New Coder
    Join Date
    Feb 2011
    Posts
    69
    Thanks
    11
    Thanked 2 Times in 2 Posts

    Yes

    You can mix em size and px size. you can fix the width of a div and have others fluid (though may look a little mad). However if you dont specify the height of a div it will adjust itself to the content.

    Peter

  • Users who have thanked far2many for this post:

    Daniel_A_Varney (07-03-2011)

  • #6
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Quote Originally Posted by Daniel_A_Varney View Post
    Also, is it okay to mix sizes (I have chosen to work in EMs) with percentages for making columns? I was thinking of having my left navigation column of a fixed size (say 20em), then having the rest of the space divided up into % (about 30/70%, just for example) to make it semi-fluid.
    Then whatever content you have in the right hand column has to be set in %. I wouldn't advice you to use ems, since px have more options vs the large and bulky em. How about setting the columns to a fixed width and set gutters in %? that would be more semi-fluid
    Last edited by Sammy12; 07-02-2011 at 10:39 PM.

  • #7
    Regular Coder
    Join Date
    Jul 2011
    Posts
    105
    Thanks
    12
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Sammy12 View Post
    I wouldn't advice you to use ems, since px have more options vs the large and bulky em. How about setting the columns to a fixed width and set gutters in %? that would be more semi-fluid
    Quite a few articles I have read recommend using ems because it makes the site more scalable during text zoom. What do you mean by "px have more options"? Ems are not 'bulky' when you start specifying the fractions.
    Last edited by Daniel_A_Varney; 07-03-2011 at 07:09 AM.


  •  

    Posting Permissions

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