strange div problem

J

joerg pfeiffer

hello,

I generate a html site with php. In the body are four
<DIV id="zoomKreuz" style="BORDER:1px solid yellow; POSITION:absolute;
TOP:0; LEFT:0; WIDTH:100; HEIGHT:100"></DIV>

Now it's quite crazy:
If I write a text above my <html> text, like
hellooo
<html>

the divs are shown. If there is no text, the divs are just a 1 pixel
size dot in the upper left corner.

Why?????????

regards
Joerg
 
S

SpaceGirl

joerg said:
hello,

I generate a html site with php. In the body are four
<DIV id="zoomKreuz" style="BORDER:1px solid yellow; POSITION:absolute;
TOP:0; LEFT:0; WIDTH:100; HEIGHT:100"></DIV>

Now it's quite crazy:
If I write a text above my <html> text, like
hellooo
<html>

the divs are shown. If there is no text, the divs are just a 1 pixel
size dot in the upper left corner.

Why?????????

regards
Joerg

You MUST specify units. width:100 100 what????? 100 miles????? 100
feet? 100 inches?

hint - try width:100px;


:)

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
J

joerg pfeiffer

hello, thanks for your answer, but
unfortunately it's not the solution....

joerg
 
C

C.W.

hello,

I generate a html site with php. In the body are four
<DIV id="zoomKreuz" style="BORDER:1px solid yellow; POSITION:absolute;
TOP:0; LEFT:0; WIDTH:100; HEIGHT:100"></DIV>

Now it's quite crazy:
If I write a text above my <html> text, like
hellooo
<html>

the divs are shown. If there is no text, the divs are just a 1 pixel
size dot in the upper left corner.

Why?????????

Maybe because of the TOP: 0; LEFT: 0;

Use some value for placement - em or % - after the number to help
establish what size you want things and, if using positioning, how
*far* from the TOP &-or LEFT you want them to place themselves.

Carol
 
P

paul

joerg said:
hello,

I generate a html site with php. In the body are four
<DIV id="zoomKreuz" style="BORDER:1px solid yellow; POSITION:absolute;
TOP:0; LEFT:0; WIDTH:100; HEIGHT:100"></DIV>

Now it's quite crazy:
If I write a text above my <html> text, like
hellooo
<html>

the divs are shown. If there is no text, the divs are just a 1 pixel
size dot in the upper left corner.


Do you have no content in the divs and are just using them to draw boxes?
 
E

Els

joerg said:
hello,

I generate a html site with php. In the body are four
<DIV id="zoomKreuz" style="BORDER:1px solid yellow;
POSITION:absolute; TOP:0; LEFT:0; WIDTH:100;
HEIGHT:100"></DIV>

Now it's quite crazy:
If I write a text above my <html> text, like
hellooo
<html>

the divs are shown. If there is no text, the divs are just
a 1 pixel size dot in the upper left corner.

Why?????????

One more thing in addition to the other guesses (no url!):
You have four divs with id="zoomKreuz" ? Each id can only be
used once on a page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top