Nothing happened... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Nothing happened...

i wrote a css code inside head tag using style tag. <style> p{ position:fixed; } </style> </head> <body> <hr color="red"> <p><b><font color="red">W</font>ildlife</b></p> . . . . . </body> </html> everything is working fine but position fixed has no effect..what is wrong? i have saved it as main.html

17th Jun 2017, 6:14 AM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
4 Answers
+ 1
i have try this also but nothing happened
17th Jun 2017, 7:27 AM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
+ 1
do you have somewhere other position instructions? maybe it's getting overwritten by someting. what marco has written should work.
17th Jun 2017, 9:01 AM
Markus
Markus - avatar
+ 1
oohh
17th Jun 2017, 10:30 AM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
+ 1
after removing <h1> it worked...i.e- <p><h1>.........</p>
17th Jun 2017, 10:48 AM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar