I am having a issue with using faux columns. It is working as I expected, however, my website uses transparent borders to make it stand out from the background and make it more abstract.
Maybe visuals will help (Image hosted by TinyPic):

Now, my container which wraps the header, navigation, sidebar, content and footer divs has a background-image which contains the image of content and sidebar divs. So, it makes sense that it is poking out of the bottom of the footer. But how can I make it so it doesn't? And shows the rest of the transparent border. And the alpha level is half of 100.
I have tried using a secondary container that wraps only sections of header, navigation, sidebar, content and footer except the only final div that creates the structure. But, I then realised that adding a closing div inside a div structure would cause the outter div to stop; which would break the whole structure.
I then tried adding background-image: none to #footer-bottom, that never worked either. I cannot specify any heights, as the content that is going to be put into the sidebar and content divs will be dynamically inserted by a content management system.
This is the so-called 'fake column' image. It is 1024x1 pixels:

This spans all the way down to the end of the container, which wraps every tag given the exception of body.
And here are the files:
The only HTML file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:/www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" href="themes/linkers/BC1/generic.css" type="text/css" media="screen"/> <title>Benscraft - A fun Minecraft server</title> </head> <body> <div id="wrapper"> <div id="header"> <div id="header-structure-layer"> <div id="header-top"></div> <div id="header-middle"></div> <div id="header-bottom-middle"></div> <div id="header-bottom"></div> </div> <div id="header-context-layer"> <div id="title">Benscraft</div> <div id="version">VER 0.0.0.1 / PRE-ALPHA</div> </div> </div> <div id="navigation"> <div id="navigation-structure-layer"> <div id="navigation-top"></div> <div id="navigation-top-middle"></div> <div id="navigation-middle"></div> <div id="navigation-bottom-middle"></div> <div id="navigation-bottom"></div> </div> <div id="navigation-context-layer"> </div> </div> <div id="sidebar"> <div id="sidebar-structure-layer"> <div id="sidebar-top"></div> <div id="sidebar-bottom"> <div id="sidebar-bottom-buffer"> Sidebar </div> </div> </div> </div> <div id="content"> <div id="content-structure-layer"> <div id="content-top"></div> <div id="content-bottom"> <div id="content-bottom-buffer"> <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6> <img src="dev/minecraft.jpg" width="250px" height="250px"/> <table border="0px" cellspacing="2px" cellpadding="2px"> <caption>UI elements</caption> <tbody> <tr><td><input type="text"/></td></tr> <tr><td><input type="password"/></td></tr> <tr><td><input type="radio" name="r"/><input type="radio" name="r"/></td></tr> <tr><td><input type="checkbox"/><input type="checkbox"/></td></tr> <tr><td><input type="file"/></td></tr> <tr><td><select><option>Option 1</option><option>Option 2</option><option>Option 3</option></select></td></tr> <tr><td></td></tr> </tbody> </table> </div> </div> </div> </div> <div id="footer"> <div id="footer-structure-layer"> <div id="footer-top"></div> <div id="footer-top-middle"></div> <div id="footer-middle"></div> <div id="footer-bottom-middle"></div> <div id="footer-bottom"></div> </div> <div id="footer-context-layer"> </div> </div> </div> </body> </html>
The main.css file:
/*
GRAPHICS (IMAGE RENDERING)
-----------------------------------------------
Benscraft - STYLESHEET FILE
-----------------------------------------------
- LINKER: generic
- NAME: main
- DESCRIPTION: resets margins, adds the
- background image, and defines boundary,
- defines basic appearance; font, colours, sizes, etc.
-----------------------------------------------
Last updated: Wednesday, 30 March 2011, 01:49PM
*/
body {
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
background-image: url('../../../images/BC1/generic/background.png');
background-attachment: fixed;
background-position: 0px 0px;
background-color: #000;
font-family: 'Arial', 'Tahoma', 'Verdana', sans-serif;
font-size: 10pt;
line-height: 18px;
color: #FFF;
}
div#wrapper {
width: 1024px;
margin: 0px auto 0px auto;
background-image: url('../../../images/BC1/generic/fake-columns.png');
}
And the footer.css file:
/*
GRAPHICS (IMAGE RENDERING)
-----------------------------------------------
Benscraft - STYLESHEET FILE
-----------------------------------------------
- LINKER: generic
- NAME: footer
- DESCRIPTION: footer definition (structure layer)
-----------------------------------------------
Last updated: Wednesday, 30 March 2011, 01:49PM
*/
div#footer {
clear: both;
}
/* Imaging structure start */
div#footer div#footer-structure-layer div#footer-top {
background-image: url('../../../images/BC1/generic/footer-top.png');
width: 1024px; /* FIXED (CHANGE NOT ALLOWED) */
height: 5px; /* FIXED (CHANGE NOT ALLOWED) */
}
div#footer div#footer-structure-layer div#footer-top-middle {
background-image: url('../../../images/BC1/generic/footer-top-middle.png');
width: 1024px; /* FIXED (CHANGE NOT ALLOWED) */
height: 50px; /* DYNAMIC (CHANGE ALLOWED) */
}
div#footer div#footer-structure-layer div#footer-middle {
background-image: url('../../../images/BC1/generic/footer-middle.png');
width: 1024px; /* FIXED (CHANGE NOT ALLOWED) */
height: 8px; /* DYNAMIC (CHANGE ALLOWED) +2 */
}
div#footer div#footer-structure-layer div#footer-bottom-middle {
background-image: url('../../../images/BC1/generic/footer-bottom-middle.png');
width: 1024px; /* FIXED (CHANGE NOT ALLOWED) */
height: 50px; /* DYNAMIC (CHANGE ALLOWED) */
}
div#footer div#footer-structure-layer div#footer-bottom {
background-image: url('../../../images/BC1/generic/footer-bottom.png');
width: 1024px; /* FIXED (CHANGE NOT ALLOWED) */
height: 23px; /* FIXED (CHANGE NOT ALLOWED) */
}
/* Imaging structure stop - Height: 131px (Please change this when you edit heights above!) */
/* Imaging context start */
div#footer div#footer-context-layer {
position: relative;
height: 131px;
margin-top: -131px;
}
/* Imaging context stop */
I think they are the only files you may need in order to help me. Thank you.
This post has been edited by Maakux: 31 March 2011 - 02:47 PM

New Topic/Question
Reply


MultiQuote







|