开发者

css layout - 2 column, dynamic width problem

开发者 https://www.devze.com 2022-12-15 12:43 出处:网络
My problem has todo with a dynamically loaded image in col1 and resizing col2 to fill the rest of the space.

My problem has todo with a dynamically loaded image in col1 and resizing col2 to fill the rest of the space.

the width of container is fixed at 950px.

col1's width could be any with.

┌────────────── container ─────────────┐
│  ┌──── col1 ────┐  ┌──── col2 ────┐  │
│  │ Image        │  │ Text         │  │
│  │              │  │              │  │
│  └──────────────┘  └──────────────┘  │
└──────────────────────────────────────┘



┌────────────── container ─────────────┐
│  ┌──── col1 ────────┐  ┌── col2 ──┐  │
│  │ Image            │  │ Text     │  │
│  │                  │  │          │  │
│  └──────────────────┘  └──────────┘  │
└──────────────────────────────────────┘

I've tryed solving it using tables and div float, but haven't had any success. this is an example of the page i'm working wi开发者_运维问答th..

http://www.camoconnell.com/#17


remove the td {width:100%;} inside your basic.css , btw the site looks cool but html is bad :D

0

精彩评论

暂无评论...
验证码 换一张
取 消