How would I go about doing this?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Foo</title> <style type="text/css"> <!-- body { background:#fff; margin:0; padding:0; } .gradientbg { background:#006; height:161px; width:100%; position:absolute; margin:auto; top:0; bottom:0; } .centeredimage { width:1000px; height:161px; background:#00f; margin:0 auto; position:relative; } --> </style> </head> <body> <div class="gradientbg"> <div class="centeredimage"></div> </div> </body> </html>
Home | | News | Rules | FAQ |
The time is now 09:10 AM (GMT).
Powered by: vBulletin Version 3.8.4 Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.