Help with html

  • JFC
  • Newbie
  • Newbie
  • JFC
  • Posts: 12

Post 3+ Months Ago

I am trying to get my background image to not repeat and i have tried this html code without any luck.

Am I doing something wrong here?
Code: [ Select ]
<title>Travel Photography - Colombia Directory</title>
</head>

<body background="background%20original4.jpg";background-repeat: no-repeat>

<p>&</p>
<p>&</p>
  1. <title>Travel Photography - Colombia Directory</title>
  2. </head>
  3. <body background="background%20original4.jpg";background-repeat: no-repeat>
  4. <p>&</p>
  5. <p>&</p>


----------------------
fixed - use the bbCode "code" buttons when posting any type of code. Thanks
  • JFC
  • Newbie
  • Newbie
  • JFC
  • Posts: 12

Post 3+ Months Ago

OK, I posted the html in here and it has vanished!

OK, the link to the web is here: http://www.urbanjellyfish.newmail.ru if anyone wants to look at the source code.

thanks
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

Yuo have to put the HTML inside of the [code] tag.
  • JFC
  • Newbie
  • Newbie
  • JFC
  • Posts: 12

Post 3+ Months Ago

Thanks, so that would be

<code>background-repeat: no-repeat</code>?
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

You can only use that feature with a CSS style as far as I know. In the source of your page you have it in both a style and inside the html body tag as an attribute. Just use the style:
Code: [ Select ]
<style>
body {
 background-repeat: no-repeat;
 background-image: url('background%20original4.jpg');
}
</style>
  1. <style>
  2. body {
  3.  background-repeat: no-repeat;
  4.  background-image: url('background%20original4.jpg');
  5. }
  6. </style>


that you already have and remove it from the body tag, and I think you will be all set.

The code tag is a BBCode feature that you can insert by using the buttons under the subject line on the posting page.
  • JFC
  • Newbie
  • Newbie
  • JFC
  • Posts: 12

Post 3+ Months Ago

Brilliant, sorted thanks. Do you know how I stretch the image to fit on the entire page or is it a case of resizing the image manualy?
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

As far as I know, there's no method for setting the width or height of a background image in css.

:(

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 24 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.