spyboy1o1 Posted January 28, 2008 Share Posted January 28, 2008 im new to the whole css thing.. and i put a pic in there, as the pic for my linkbar...heres the css code:#mlinks { background-image: url('pics/mainlinks.bmp');height: 10.5mm;width: 900px; }ok now this is my html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive"> <title>Trade Even Up</title> <link rel="stylesheet" type="text/css" href="base.css" /> </head> <body> <center><img src="pics/teu-banner.bmp"></center> <center><div id="mlinks"> <a href="trade.html">Trade</a> </div></center> ok so i gotta figure out how to get the text "Trade" in the center of the image form my css...im guessing i gotta go into html, put something in table, then use align??? Link to comment Share on other sites More sharing options...
kurt.santo Posted January 29, 2008 Share Posted January 29, 2008 Replace "background-image: url('pics/mainlinks.bmp');height: 10.5mm;width: 900px;" with "width:xxx; height:xxx; background: background:url(pics/mainlinks.bmp) center no-repeat;". Fill in for xxx the width and height you want for your div, the bg image will always be displayed in the center...Kurt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.