![]() |
|
|||||||
| Notices |
| CSS Forum Cascading Style Sheets (CSS) and XHTML Forum |
![]() |
|
|
LinkBack (2) | Thread Tools | Display Modes |
|
|||
|
Hi, i'm a new to css and this forum.
I'm stuck on an html page where if i duplicate a style defination (not sure what you call them), with exactly the same content and a new name and apply it to a DIV tag (which is nested), the content is no longer visible. Basically the file is a static HTML file and has 2 DIVs. The First Div: <div id="ImageDiv"> <img src="images/Background.jpg"> The second div: <Div id="BodyText"> and has some static content i want displayed above the background. id descriptions in the linked .CSS file: #BodyText { font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: justify; visibility: visible; z-index: 2; height: 378px; width: 568px; left: 20px; top: 20px; padding: 40px; word-spacing: normal; line-height: 210%; position: absolute; } #ImageDiv { z-index: 1; padding: 0px; border: none; overflow: hidden; left: 0px; top: 0px; right: 0px; bottom: 0px; height: 416px; width: 608px; position: relative; visibility: visible; } So if i duplicate #BodyText and call it #BodyText2 my content is no longer visible, the background image stays! Can anyoone help... Am using Dreamweaver MX |
|
|
|
||||
|
You'll have to have a #BodyText2 css as well
__________________
Colour Printing and Integrated Cards || Graphic Design, Web Design UK || Logo Designer - Logo Design || Graphic Design Blog || Logo Design Logo Designer || Integrated Labels & Cards || Logo Design || Graphic Design Links || Web Design Rotherham UK || Logo Design UK || Web Design UK
|
|
|||
|
Sorry i forgot to mention i've already added that to the .css file (and saved it)
#BodyText2 { font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: left; visibility: visible; z-index: 8; height: 378px; width: 568px; left: 20px; top: 20px; padding: 40px; word-spacing: normal; line-height: normal; position: absolute; } Basically only changed the line-height and z-index. |
|
||||
|
Can't you upload it so we can see where things are meant to be?
__________________
Colour Printing and Integrated Cards || Graphic Design, Web Design UK || Logo Designer - Logo Design || Graphic Design Blog || Logo Design Logo Designer || Integrated Labels & Cards || Logo Design || Graphic Design Links || Web Design Rotherham UK || Logo Design UK || Web Design UK
|
|
|||
|
The HTML file:
-------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <LINK href="CSS/MainBody.css" rel="stylesheet" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <Table border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="ImageDiv"> <img src="images/Background.jpg"> <Div id="BodyText2"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <Div align="left"> <img src="images/ContactUs_Small.jpg" width="150" height="120" hspace="0" vspace="0"> </Div></td> <td width="15"> </td> <td valign="top"> <Div align="left"> <H1>Contact Us</H1> <BR> <H2>Corporate Office</H2> <BR> </Div></td> </tr> </table> </Div> </div> </tr> </Table> </body> </html> ------------- |
|
|||
|
The MainBody.css file;
#BodyText { font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: justify; visibility: visible; z-index: 2; height: 378px; width: 568px; left: 20px; top: 20px; padding: 40px; word-spacing: normal; line-height: 210%; position: absolute; } #BodyText2 { font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: left; visibility: visible; z-index: 8; height: 378px; width: 568px; left: 20px; top: 20px; padding: 40px; word-spacing: normal; line-height: normal; position: absolute; } #ImageDiv { z-index: 1; padding: 0px; border: none; overflow: hidden; left: 0px; top: 0px; right: 0px; bottom: 0px; height: 416px; width: 608px; position: relative; visibility: visible; } |
|
|||
|
Ooops it's changed links relative to www.graphic-design-forum.com/
Was there some other way to upload it? |
|
||||
|
To a web server?
__________________
Colour Printing and Integrated Cards || Graphic Design, Web Design UK || Logo Designer - Logo Design || Graphic Design Blog || Logo Design Logo Designer || Integrated Labels & Cards || Logo Design || Graphic Design Links || Web Design Rotherham UK || Logo Design UK || Web Design UK
|
|
||||
|
Why are you telling these divs to be visible? they would do that by default. Youll need to link us the website so we can see the WHOLE picture.
__________________
"If at first you don't succeed, try again. Then quit. No use being a damn fool about it." Mike McKenzie - Online Portfolio |
![]() |
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How much stolen content? | Toon | Off Topic | 14 | 23-03-2008 11:36 AM |
| Content Management Systems | philjohns | General Web Design Forum | 11 | 28-02-2008 10:11 PM |
| Using Other People's Content is OK! | Graphic Design Blog | Graphic Design Blog | 0 | 06-02-2008 07:21 AM |
| drop down content | Joe.Morgan | Programming Forum | 5 | 02-06-2007 04:56 PM |
| Site Content | El Peligroso | General Web Design Forum | 5 | 24-05-2007 03:18 PM |
| All times are GMT. The time now is 04:52 PM. |