Nothing happened... | SoloLearn: Learn to code for FREE!

+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

6/17/2017 6:14:52 AM

A N S H U L S I N G H

4 Answers

New Answer

+1

i have try this also but nothing happened

+1

do you have somewhere other position instructions? maybe it's getting overwritten by someting. what marco has written should work.

+1

+1

after removing <h1> it worked...i.e- <p><h1>.........</p>