I m creating a background image but dont know the proper size to use. Am using jpg and having tiles effect, i.e repeating background. Any infomation on this is appreciated.
I m creating a background image but dont know the proper size to use. Am using jpg and having tiles effect, i.e repeating background. Any infomation on this is appreciated.
Hmmm?
There are complex CSS styles and such that would allow, for example, to have a background image resize to fit the size of the page.
But... generally... it's just an image and that's all you need to put in the html.... defaults from there.
If you like as is, then that's fine.
If you don't, then what would you like to fix/achieve?
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
i need a script to strech the bgimage also
Problem is i'm not good at css, so probably the template i use has the tile effect which isnt what i want since i am creating my own background image. Stretching or shrinking the image to fit the page will blurr the image yeah? Think i will have to read the basic css page for help.
Just put this in the HTML page, it will tile it and wont distort your image..
Code:<style type="text/css"> body { background-image: url(path/to/the/image.jpeg); background-color: red; /* Ought to be as similar to the predominent colour of the background image as possible. */ } </style>
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Oh but i dont want tiled background because the one i use is not suitable for repeated pattern therefore i tot i could use an image that fits closely to the screen size. How abt css to auto adjust the size to fit?
not sure what the code is myself. Google would find it. Or just wait and see if someone tells you.
However, I should note--
background-color: red;
is wrong... should be:
background-color: #FF0000;
Hexidecimal colors are more valid than just the name. Yes, the name "works"... but isn't the official way. I think it's going to be phased out with the next update to html, but not sure. Just heard that in passing, I think.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
ok...if someone can identify this problem of mine...there seems to have sorta right margin in the page that any image that span beyond that will be cut off and tile will appear after that invisible margin, Unless i align the image using positioning method. i really hate to do that because i want to use a single image to cover the entire page. Maybe someone whould like to look into my source of the page and see whether any other part of the html causes that margin problem. http://www.freewebs.com/jewellim/ juz in the testing stage so the webpage is still far from completion.
Code:background: white url(some.jpg) center no-repeat;
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
does anyone this complex css? i need a script that would either make a background image fit to any window or show a different image depending on screen resolution. does anyone know if there is such a script?Originally Posted by djr33
Bookmarks