Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
What's the code for this...
Old 01-13-2004, 07:05 PM What's the code for this...
Filmgirl's Avatar
Super Talker

Posts: 102
Location: Orlando Florida
Trades: 0
I saw this:

http://www.inmyplaces.com/

you see how the background stays put... what's the code for that?
Filmgirl is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-13-2004, 10:30 PM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Trades: 0
Put this into the body tag:

bgproperties="fixed"

[View -> Source]
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 01-14-2004, 04:32 AM
Ultra Talker

Posts: 377
Trades: 0
or you may do this in CSS:
body {background-attachment: fixed;}
__________________
andrews_john

Please login or register to view this content. Registration is FREE
andrews_john is offline
Reply With Quote
View Public Profile Visit andrews_john's homepage!
 
Old 01-14-2004, 06:25 AM
Experienced Talker

Posts: 38
Trades: 0
You can also position the background, have it display only once, have it repeat only across the screen or only down the screen:

(Links and resources on positioning in CSS:
http://www.thenetplace.com/css.php#positioning)

Positioning:
background-position : [top, bottom, centre, left, right];

Repetition:
background-repeat : [repeat-x, repeat-y, no-repeat];


So to position an image in the bottom right corner, not repeating (as is done with the image of the dice on this page: http://www.betsearcher.net/):

background-position : bottom right;
background-repeat : no-repeat;

You can also use percentages and pixels to place the background image:

background-position : 50px 20px;
background-repeat : repeat-y;

The background image would start 50px across and 20px down and repeat down the page only.

Experiment with these selectors until you get a satisfactory effect.
__________________
3,000+ links on web site design, usability, accessibility, tools,
books, link checkers, software, associations, events, web standards...


Please login or register to view this content. Registration is FREE
theNetPlace.com is offline
Reply With Quote
View Public Profile Visit theNetPlace.com's homepage!
 
Reply     « Reply to What's the code for this...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41135 seconds with 12 queries