English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm trying to use background graphics with forground graphics on my page, but if I put in the image in, there's phantom space below it that makes the background image wrap when I don't want it to. When I take the image out, it works ok, but only if I use tables, not divs. I've tried margin and padding :0, but that isn't working either. I've had similar problems to this for a long time. There must be a simple guide to using this stuff correctly (or if there was a way to FORCE the browser to make the cell EXACTLY the size I WANT!)

Whew. Man this would be so easy if it would just size it the way I tell it to.

2006-10-12 12:51:16 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

It's been a while for me, but I think in your tags you can specify the height and width in pixels to get the exact size you want. Hope that helps

2006-10-12 12:55:12 · answer #1 · answered by micah 3 · 0 0

I cannot understand exactly what's going on with your page, but I can tell you about one thing (because I've had the same kind of problems): Internet Explorer 6 is the great problem because it's old and not compatible with the W3C standards. Try your best to make your code standard compatible (it will work in standard compatible browsers like FireFox), and when you get to that see how you can twist this code to be shown properly on Internet Explorer 6 without taking it out the standards.

I hope this observation helps you...

2006-10-13 00:18:21 · answer #2 · answered by Diegosolo 2 · 1 0

I'm a bit confused trying to understand the exact problem you are having, but I will attempt to help anyway.

Try adding this to your css code:

img {
display:block;
}

the img tag isn't a block level element by default, so that is why you may be experiencing problems with the div size.

Good luck.

2006-10-13 00:48:39 · answer #3 · answered by Kyle D 2 · 0 0

With a "

" tag, you can define your columns precisely like:



where you'd have 4 columns of 150 pixels each; or:



to define column widths separately

2006-10-12 19:56:53 · answer #4 · answered by juliepelletier 7 · 0 0

fedest.com, questions and answers