I have an upload form that uploads a picture and places it relative to another image. It works fine on it's own web page, but when I add it the website, all my positioning is disregarded. This is in IE and Firefox, and with both absolute and relative positioning.
I boiled it down to this line: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
which seems to be quite important, however, when I remove it, my problem is gone. Can someone please explain what this does, and how I can prevent it from causing me problems? Thanks.
LELE7
0
Newbie Poster
Recommended Answers
Jump to PostHi, the "line" you have picked out is the doctype declaration, so that the browser knows how to handle the code it receives.
You have to get to the code and inspect the structure of the whole page. Where do you display the uploaded image? In the main page …
Jump to PostHave you already validate your markup ? http://validator.w3.org/
All 8 Replies
Baradaran
1
Junior Poster in Training
ko ko
97
Practically a Master Poster
teedoff
3
Posting Pro
LELE7
0
Newbie Poster
teedoff
3
Posting Pro
Cool&Awesome
7
Junior Poster in Training
teedoff
3
Posting Pro
LELE7
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.