Forum Moderators: open
I have created a web layout in photoshop and have sliced the image, and i import them into firework to check the slice. And I import it in dreamweaver.
The purpose of me using div tag is to be able to have writable area with background image. Or is there other way to do that?
Problem:
1)Why when I wrote some text over the div tag the background turns white?
2)How can I make the body at a center position? I have make the div tag margin at 0 auto but is not working. How can I import it correctly?
What are your export settings from Fireworks? Fireworks will not properly export CSS layers (the option to create divs instead of tables).
Where are you entering text when the background becomes white? Is this in Fireworks or Dreamweaver? Again Fireworks is iffy when exporting to css. There is a Fireworks extension that gives you more options when converting your layers and text to html, but it still isn't all that great and is only fun to play with.
Answer to your body center: Give the body tag (or container div) a specific width (other than 100%) then set the margins to 0 auto;
/*CSS*/
body {
width: 800px;
marging: 0 auto;
}
or us a container div:
#main-container {
width: 800px;
marging: 0 auto;
}
Hope that helps some...