Home » questions » CSS layout problem?

CSS layout problem?

2006-08-04 14:48:19, Category: Programming & Design
I have a webpage with content horizontally centered. Inside it are 3 divs (top, middle and bottom). Now I want to get a div to sit just to the left of the middle div of the centered content. How do I do it? I'm using valid HTML 4.01 Strict, with CSS for all presentational functions (i.e. no tables). knieveltech: Sounds promising, I'm working on getting it to work right now. And, unless somebody comes up with a simpler way, I'll most likely use it in my final design. Thanks :) Sue W: I said I didn't want to use any tables, which are against the spirit of the Strict doctype. If you know of a table-free way to acomplish my goal, could you please edit your post to include it?

Answers

  1. Sue W

    On 2006-08-04 16:54:54


    See if this works. Try creating a table with three equally spaced where your middle division is. Put the content of the already present div into the middle . You should then have an empty to the left and one to the right
  2. knieveltech

    On 2006-08-04 15:31:33


    You could always use position:relative to move it where you want it.