This is a discussion on "Can't get background to show" within the Starting Out section. This forum, and the thread "Can't get background to show are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Can't get background to show
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Can't get background to show
Hi, I'm trying to get my background to show on my page and not repeat and be centered but I doesn't work. I've tried this but it doesn't work
|
|
|
|
|||
|
Re: Can't get background to show
Is the file in the specified place and is it correctly named?
Pete. |
|
|||
|
Re: Can't get background to show
Yes it is. Also can you put the the background in an external style sheet.
|
|
|||
|
Re: Can't get background to show
could be a typo
|
|
|||
|
Re: Can't get background to show
I'm just wondering where do you put the code.
|
|
|||
|
Re: Can't get background to show
Is this actually being applied to anything. Before the opening curly bracket you need to select the element.
like
|
|
|||
|
Re: Can't get background to show
It can go in an external style sheet that is called in the head of your html document.
Pete. |
|
|||
|
Re: Can't get background to show
You can put it in an external style sheet or on any page you wish to have that background
|
|
||||
|
Re: Can't get background to show
erm...you haven't declared it as a style for anything!
* Try this in your external stylesheet. *
Also I know its stupid...but is it correctly linked to the html document? * @dab42pat - you can actually not close your last style declaration with a ; and it will still work...not good practice in my opinion though. * mike |
|
|||
|
Re: Can't get background to show
Yes it is linked to my style sheet
|
|
|||
|
Re: Can't get background to show
Could you post your full code please. css and html.
Pete. |
|
|||
|
Re: Can't get background to show
Yea sure Html
|
|
|||
|
Re: Can't get background to show
Pete. |
|
||||
|
Re: Can't get background to show
ok...your CSS is wrong. CSS documents aren't layed out liike html documents, you don't need head and body tags.
*
* So yours will be: *
Also...you can shorthand the background by puttiong it all in one attribute so: *
becomes *
mike |
|
|||
|
Re: Can't get background to show
Thanks Pete that worked great. I'm just wondering how do you set page width and height
Last edited by casho; Aug 14th, 2007 at 10:57. |
|
|||
|
Re: Can't get background to show
A quick note. The font you've used may not be on every users computer so you should have a few web-safe back-ups just in case. Things like time new roman, Helvetica, Verdana, Arial, Georgia, and finally a sans-serif one. It's just good practice and helps you to maintain some control over what users see but you can't cover every eventuality.
Pete. |
|
|||
|
Re: Can't get background to show
|
![]() |
| Tags |
| background, css, html |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Background image won't show up | casho | Web Page Design | 7 | Mar 5th, 2008 09:04 |
| Can't Get Table Background to show when "E-Mailing" Page | chriss | Web Page Design | 5 | May 8th, 2007 14:10 |
| Cant Get CSS background images to show up | mschroeder | Web Page Design | 3 | Jan 18th, 2007 13:33 |
| favicon doesn't show | berjoe | Graphics and 3D | 20 | Nov 13th, 2006 14:32 |
| Background and Resolution compatibility, My background gets cut off | Funion | Web Page Design | 1 | Dec 4th, 2005 04:42 |