News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Background Image in CSS

Started by sloopz, September 26, 2005, 06:33:35 PM

Previous topic - Next topic

Deaks

ok im trying to get a background image into the same table as the logo.

tbg
{
background-image: url(images/back.png);
background-color: #070707;
margin: 0px;
padding: 0px;


Thats the code in the css how would i insert that into the php

<table cellspacing="1" cellpadding="1" border="1" align="center" width="60%" class="tborder">
<tr style="background-color: #070707;">
<td valign="middle" align="center"><img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/ddlogo.gif', '" alt="" /></td>
</tr>
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Tim

#1
.tborder
{
background: url("images/back.png") #070707;
margin: 0;
padding: 0;
}
That is the correct code

some basics on css

Deaks

#2
cool thanks, sorted one problem, gave me another one (screwed my allignment up) got problem sorted with help from an old friend
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: