Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Locking Background Image To Browser Borders.
xboxrulz
post Dec 14 2006, 11:03 PM
Post #1


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 2,850
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233
myCENTs:98.66



I'm trying to have my background image locked so that it wouldn't keep repeating on the image border.

How would I do that?

xboxrulz
Go to the top of the page
 
+Quote Post
ahender
post Dec 14 2006, 11:42 PM
Post #2


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 20
Joined: 16-October 06
Member No.: 16,607



its css but... not sure if it works i just did some googling laugh.gif


CODE
BODY {
  background: url(image name);
  background-repeat: no-repeat;
}
Go to the top of the page
 
+Quote Post
xboxrulz
post Dec 15 2006, 12:18 AM
Post #3


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 2,850
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233
myCENTs:98.66



unfortunately, I don't know how to load CSS on HTML.

xboxrulz
Go to the top of the page
 
+Quote Post
WeaponX
post Dec 15 2006, 02:21 AM
Post #4


Way Out Of Control - You need a life :)
Group Icon

Group: Members
Posts: 1,086
Joined: 21-June 05
From: New York
Member No.: 6,440
myCENTs:86.41



Hi, not sure what you meant by image border, but if it's just a static background image, give this a shot:
CODE
<BODY BACKGROUND="your_image_here.gif" bgproperties="fixed">

That will make the image stick on your site and when you scroll the image is not moving also.
Go to the top of the page
 
+Quote Post
saint-michael
post Dec 15 2006, 06:51 AM
Post #5


SM- the Man -The Myth - The Legend Himself
Group Icon

Group: Members
Posts: 453
Joined: 4-September 05
From: Drinking da rootbeers
Member No.: 8,313
myCENTs:55.62



ahender css is correct now to have that css load to your website you can do it one of two ways first you can set it in the html document itself like so

CODE

<style type="text/css">
html, body{
  background: url(image name);
  background-repeat: no-repeat;
}
</style>


Or you can use an external style sheet in which all you do is stripe the style tags and then just add this piece of code into the html document.

CODE

<link rel="stylesheet" href="main2.css" type="text/css" />


If you need some idea on how to set it up I recommend that you check out my two posts on how to set up a pure css website. You can take a look of how it looks when you use external styles sheets and all that good stuff.
Go to the top of the page
 
+Quote Post
jlhaslip
post Dec 16 2006, 03:07 AM
Post #6


Advanced Member
Group Icon

Group: Members
Posts: 189
Joined: 15-November 05
From: Inland from the Left Coast of Canada
Member No.: 9,627
myCENTs:62.43



I use this CSS on a site to "lock" an image onto the background.
CODE

body {
background-color: #dfffdf;
background-image: url('images/opac_logo.gif');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: 50% 75%;
font: 0.85em Arial,Helvetica,Verdana, sans-serif, serif;
min-height: 100.1%;
}


The site is located here.
Go to the top of the page
 
+Quote Post
Hercco
post Dec 16 2006, 07:20 PM
Post #7


Super Member
Group Icon

Group: Members
Posts: 595
Joined: 4-September 04
Member No.: 228



You could also insert the CSS code via style attribute to your <body> tag, Like this <body style=" css here ">

Doesn't really matter which method you use, but since you're not using CSS and I know some people prefer to stick to as "pure" html as possible...

Go to the top of the page
 
+Quote Post
xboxrulz
post Dec 18 2006, 09:42 PM
Post #8


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 2,850
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233
myCENTs:98.66



thanks for the help guys, I finally asked my friend and she gave me this code instead:

CODE

body {
    background:rgb(255,255,255) url('http://www.imagefilez.com/out.php/i51028_madagascardreamworkspenguin5g.jpg') no-repeat fixed bottom left;
    }


and it worked.

xboxrulz
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. background sound(4)
  2. IE6 display:block hides other image BUG(1)
  3. Image operation via MySql database(1)
  4. How To Display Clear Image On Web Site(4)
  5. Html W/ Embedded Flash(8)
  6. Netscapre Borders(1)
  7. Web Browser Picture(1)
  8. How Do You Show..(11)
  9. Jscript/html/css Code Help(8)
  10. Html Background Tutorial(2)
  11. Compatible Browser With Css(4)
  12. May I Know What Is Ftp Browser?(4)
  13. Image Positioning...help?(3)
  14. Need Help With JPEG Background(4)
  15. How Do I Keep A Background On My Site(14)
  1. What Is The Best Size To Make A Background In Photoshop?(6)
  2. Imagemap With Image As Other Link(0)
  3. Searching For Alternate Flash Image Viewer(2)
  4. Stage.scalemode(1)
  5. Almost 3d Blocks(6)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 02:59 PM