Htmlu1_p5.html

<!-- main html code --> <html> <head> <title>Html-5</title> <link rel="stylesheet" type="text/css" href="css5.css"/> </head> <body> How to set the background in the center of the page? Set the background Image position in HTML. </body> </html> <!-- main css code body { background-image:url("2.jpg"); background-position:center; background-repeat:no-repeat; font-size:40; color:red; } just use your image this css file will be externally imported -->

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.