FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

HTML background help

 


samples-surveys
I want a fixed (watermark) vertically repeating background to float on the right side of the screen.

I'm already too far into the html to start over with css so I'd like to avoid that at all costs.

<body background="bkgrnd.gif"; background-attachment: fixed; background-repeat: repeat-y; bgcolor="#ffffff"; background-align="right">

That's the code, it works exactly how I want it to except it's on the left side of the screen instead of the right.

I've tried many variations of the "align" function but nothing's worked. Any help would be greatly appreciated.
jabapyth
you probably want
Code:
float:right
rohan2kool
samples-surveys wrote:

I'm already too far into the html to start over with css so I'd like to avoid that at all costs.


this is seriously stupid. It is so simple with CSS.. what is more stupid on ur part is that the code you are using is completely malformed CSS used in the most standards-abusing way ever... [try validating it at any service]. Use CSS:

<body style="#FFFFFF background: url('whatever.gif') repeat-y fixed top left;">

OR

<body style="background-image: url('whatever.gif'); background-position: top left">

and for god sake:

Refer:
http://w3schools.com/css


Last edited by rohan2kool on Sat Aug 11, 2007 12:55 pm; edited 1 time in total
lukejones
Did you fix it?
If it didn't mess your page up to much, you could put the image as the background of a table, rather than the body. Then put the table in the right place.
aningbo
let us know if u have figure it out or not.
coreymanshack
[quote="rohan2kool"][quote="samples-surveys"]
I'm already too far into the html to start over with css so I'd like to avoid that at all costs.
Quote:


this is seriously stupid. It is so simple with CSS.. what is more stupid on ur part is that the code you are using is completely malformed CSS used in the most standards-abusing way ever... [try validating it at any service]. Use CSS:

<body style="#FFFFFF background: url('whatever.gif') repeat-y fixed top left;">

OR

<body style="background-image: url('whatever.gif'); background-position: top left">

and for god sake:

Refer:
http://w3schools.com/css


Wow, every time I see this guy commenting on css it's negative abuse. Lighten up on him!


A good idea that I would do for a fixed background on the right would be this...

background-url: ('urlhere.png');
background-position: top right;
background-repeat: repeat-y;
background-attachment: fixed;
rohan2kool
coreymanshack wrote:

Wow, every time I see this guy commenting on css it's negative abuse. Lighten up on him!


A good idea that I would do for a fixed background on the right would be this...

background-url: ('urlhere.png');
background-position: top right;
background-repeat: repeat-y;
background-attachment: fixed;


i actually commented on he's stubbornness and stupid reasons on *not* to use css. and look at the malformed css he has typed.. being a css developer, you should be agreeing with me on this one.. now.. what exactly did i do wrong.. Razz
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.