short version:
the text is determining the size of the table, not the image, and the image is displaced by the "top" command out of its normal flow. put the text in a div, and set that div to a length and height that will push down the bottom.
the problem is in main.css (line 10) this
img.floatrightvenue {
left:620px;
position:absolute;
top:515px;
}
declaring things in pixels nearly mostly defeats the purpose of CSS, try changing this to some percent. The top command is the problem also, the transitional doctype puts IE into quirks mode, you'll find that doesn't work in firefox quite the same. Then there's the CSS file itself, pick a style and run with it I'm a fan of putting each declaration on a separate line.
Other stuff:
Then there's this:
img.floatright {position:absolute; width:391; height: 371; top:525px; left:550px;}
you're missing units of measurement here. again, you should generally use percents rather than pixels, these appear to be pixels, but does the computer know that?.
this isn't necesary in #container
margin-left: auto;
margin-right: auto;
explaining specificity is a bit difficult, but there's an illustration somewhere online involving storm troopers, darth vader, and the emporer on the internet.
the last line of the file has:
background-image: url('urlhttpwww.geolearning.comsummitimages910sidebar.gif')
I'm pretty sure that's a typo.
It'd also be really nice of you to put global declarations first, then classes, then ids, it just makes it easier to read, thirdly, firefox has a really cool plugin called "firebug" that will make your life 100,000,000,000 times easier.
Also as you advance you'll find that you can do this entire layout with no TABLES and you could've done it with no javascript. You may also wish to pick up "Designing with Web Standards second edition" unfortunately, I can't presently remember the author's name.
2007-09-25 10:19:04
·
answer #1
·
answered by lansingstudent09101 6
·
0⤊
0⤋
IMHO (and I'm afraid you must give the 10 points to somebody else because you must assuredly won't give a hoot for my answer) you must redo the design. Tabular layout is not the way to go!
Use CSS! Define each pix with style="float: right; margin: 1em;" (plus your bordering) and, where necessary, you may need to diddle each paragraph so that you have style="clear: both;" or maybe even use what is called a spacer div between paragraphs, like this:
amper nbsp semicolon
** notice that's ampersand plus the characters n and b and s and p plus a semicolon which is the non-breaking space which I had to spell out here courtesy of Yahoo! **
As long as you're using a tabular design, and especially where you have FIXED heights and widths for the td's you may have some images over-running the bounds of individual table cells, and remember that the table won't give-and-take with individual browsers (!) and with the shrinking and "enlargen-ing" of various folks' whims.
2007-09-25 10:07:13
·
answer #2
·
answered by fjpoblam 7
·
0⤊
0⤋
Then why don't you use percent instead of pixel for position. Or, dont use "absolute" rule. because you make the position ABSOLUTE, so the browser will stick to the rule that says "no matter how you resize the window, the item position IS absolute. browser may not adjust the position!" I'm not pro in html-based webside building, but if you need feedback, maybe i can help and you can give me the link to a sample page? (email me or put the link here)
2016-05-18 03:26:04
·
answer #3
·
answered by ? 3
·
0⤊
0⤋