Background Image

Started on the old forum in February 2007 · view the original in the archive · old links redirect here

2 replies · 577 views · started 19 years ago · 1 min read

wizard Senior · 493 posts #1

how do i stop background image from looping in a page. i added it in my stylesheet as

.head {
  background: #000044 url('[url]http://siteurl/images/logo.gif'[/url]);
  padding: 2px 2px 2px 2px;
  margin: 3px 0 0;
  color:#F4A460;
  text-align: center;
  border-width:1px 0;
  border-style:solid;
  border-color:#8E110B;
  }

and in the page i have

echo "<div class=\"head\">CONTENT</div>";

i only want the background image to show once in that section

wizard Senior · 493 posts #2

he he i got it to work. 4 n1 who wanna know

.head {
  background: #000044 url('[url]http://siteurl/images/logo.gif'[/url]) no-repeat top center;
  padding: 2px 2px 2px 2px;
  margin: 3px 0 0;
  color:#F4A460;
  text-align: center;
  border-width:1px 0;
  border-style:solid;
  border-color:#8E110B;
  }

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close