Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS centering div next to the other – fixed one – on every resolution

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #147619
    Mag
    Participant

    I’ve come upon such a problem: I need to center my main div on every resolution (from tablets: 640px – to wide screens like 1900px etc.). Usually I would do it by setting width on div + margin on auto. But in this case I’ve got sidebar which is 200px and need to be set with position:fixed. Does anyone have got an idea how to do that without using javascript?

    Here’s fiddle: http://jsfiddle.net/Da73v/

    #147623
    jurotek
    Participant
    #147650
    Mag
    Participant

    Wow, genius:)
    Thanks a lot!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.