We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Dreamweaver help - div tag background doesn't show on web
woj101
Posts: 207 Forumite
in Techie Stuff
Hi
I'm learning Dreamweaver from the ground up, trying to make a very simple but nice looking web site.
I've got the early stages of the home page done and online - background and banner, displaying properly on my new domain, but for some reason one element of my page won't show up in either IE or Opera, despite showing up when I preview it in Dreamweaver.
Following a Dreamweaver guide (I'm using CS3) I'd selected everything and put a 'div tag' round it all so that it would sit in the centre of any page, whatever the screen resolution. I designed a nice background image for this div tag using Fireworks, but this image just won't show up. I've uploaded all files to my server but it just won't show, but everything else is working fine (items are centred etc.).
Can anyone suggest what is wrong?
Thanks very much.
I'm learning Dreamweaver from the ground up, trying to make a very simple but nice looking web site.
I've got the early stages of the home page done and online - background and banner, displaying properly on my new domain, but for some reason one element of my page won't show up in either IE or Opera, despite showing up when I preview it in Dreamweaver.
Following a Dreamweaver guide (I'm using CS3) I'd selected everything and put a 'div tag' round it all so that it would sit in the centre of any page, whatever the screen resolution. I designed a nice background image for this div tag using Fireworks, but this image just won't show up. I've uploaded all files to my server but it just won't show, but everything else is working fine (items are centred etc.).
Can anyone suggest what is wrong?
Thanks very much.
I am a cider drinker - like my father before me.
0
Comments
-
Just a possibility, but if you have one background image covering the whole page and another for your centre div, maybe the one for the centre is displaying underneath your other one.
You can get round that by specifying a high z-index in your CSS for your centre div, e.g.
z-index:100;
http://www.echoecho.com/csslayers.htm0 -
Thanks for the input Wombat.
I've just found out what the prob was - I'd only saved the image as a .png and so for some reason it wouldn't display it on the web. Once I exported it as a jpeg it was fine.
Sounds like you know a bit more about CSS than me - it's taken me ages to do what I could have done with Word (albeit ultimately less satisfactorily) in an hour.
Cheers.I am a cider drinker - like my father before me.0 -
Thanks for the input Wombat.
I've just found out what the prob was - I'd only saved the image as a .png and so for some reason it wouldn't display it on the web. Once I exported it as a jpeg it was fine.
Sounds like you know a bit more about CSS than me - it's taken me ages to do what I could have done with Word (albeit ultimately less satisfactorily) in an hour.
Cheers.
Probably Dreamweaver expects any images to be in jpeg format and codes the HTML accordingly. So if the HTML is coded to look for a file image1.jpg it ain't going to load image1.png.
I use Dreamweaver but code the HTML and CSS myself rather than use DW's wysiwyg feature (except when I get stuck! Lol).0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.6K Banking & Borrowing
- 254.2K Reduce Debt & Boost Income
- 455.1K Spending & Discounts
- 246.7K Work, Benefits & Business
- 603.1K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.7K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards