1

please see the test page on www.derekho.co.uk

I'm wanting to 'empty' the container labelled with 'D' so that the body background tiles show through.

Container D needs a set width and needs to be centered. Any ideas?

2
  • I know I could do it with a table but that would be absolute last resort...
    – MrDerek
    Jan 28, 2012 at 13:11
  • Thanks for everyone's time, this has been solved by nesting another div within the width:50% container and giving it margin-right:(half the ammount of pixels in the content container); Thanks.
    – MrDerek
    Jan 28, 2012 at 13:36

1 Answer 1

0

As solved by asker:

http://www.derekho.co.uk/test.html

I suggest to use floats instead of absolute positioning. With absolute positioning you will have troubles when adding content on top and at bottom of the whole structure. For example, if you add a footer and side columns are bigger than the center one, footer will be positioned under these columns, they will cover it! Using floats, you can avoid this setting clear: both; for the footer element.

Float example:

http://www.pmob.co.uk/temp/fixed-center-fluid-sides.htm

8
  • a new layout structure would be much appreciated. That's the design, can't really change it... trying to line up container D with the background texture is a bit clunky... no alternatives?
    – MrDerek
    Jan 28, 2012 at 13:11
  • Ok, so, why have you come up with such layout? What do you want to realize? A simple 3 column layout, or more?
    – lorenzo-s
    Jan 28, 2012 at 13:12
  • it's the background of the website. I think I've figured it out, thanks anyways
    – MrDerek
    Jan 28, 2012 at 13:15
  • just for your information and anyone else interested, here's the solution. Thanks for your time. derekho.co.uk/test.html
    – MrDerek
    Jan 28, 2012 at 13:20
  • Ok, so it's a basic 3 column layout with fixed size center column. Search the web for examples, there are better way to accomplish this. Your code is a bit messy...
    – lorenzo-s
    Jan 28, 2012 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.