http://www.firebirdomain.com/joomla/ I have 2 layouts that i need help with. 1) located at the link above is done with absolute/relative positioning etc and the only problem is (as you can see) the content impacts the black bar which in turn moves it down, anyway around this? Its like a horrible tables knightmare. I thought the divs are supposed to work independent of each other?
2) http://www.firebirdomain.com/divtest.html i was told to try to use floats rather then abso/rela positioning so i did however it didn't appear to work too well either, although it seems like it was a better idea. Basically i just need the dang black bar to float above the menu and the white content area - can someone please assist? Thanks.
*edit: check out http://www.firebirdomain.com/joomla in IE and everything is fine, check it out in firefox and the black bar is all shifted and the text breaks the div. I added a div clearer at the end of my block of text inside of the container div but noooo it still breaks the div why!!
drhowarddrfine
11-13-2006, 11:37 PM
See my response on the other site.
Centauri
11-14-2006, 06:34 AM
Had a little play with this as an exercise. How about:
html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>divtest</title>
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<body>
<div id="banner">
<h1>PEERIA Films</h1>
</div>
<div id="maincontainer">
<form action="http://www.firebirdomain.com/joomla/index.php" method="post" name="login" id="login">
<label for="mod_login_username">Username</label>
<input name="username" id="mod_login_username" type="text" class="inputbox" alt="username" size="10">
<label for="mod_login_password">Password</label>
<input type="password" id="mod_login_password" name="passwd" class="inputbox" size="10" alt="password">
<input type="checkbox" name="remember" id="mod_login_remember" value="yes" alt="Remember Me">
<label for="mod_login_remember">Remember me</label>
<input type="submit" name="Submit" class="button" value="Login">
<a href="http://www.firebirdomain.com/joomla/index.php?option=com_registration&task=lostPassword">Lost Password?<br>
</a>No account yet?<br>
<a href="http://www.firebirdomain.com/joomla/index.php?option=com_registration&task=register">Register</a>
<input type="hidden" name="option" value="login">
<input type="hidden" name="op2" value="login">
<input type="hidden" name="lang" value="english">
<input type="hidden" name="return" value="http://www.firebirdomain.com/joomla/">
<input type="hidden" name="message" value="0">
<input type="hidden" name="336e6ae4fe84ce54a4f92f8e7bb9aec2" value="1">
</form>
<ul id="nav">
<li>link1</li>
<li>link2</li>
<li>link3</li>
</ul>
<div id="content">
<ul id="latestnews">Latest News
<li><a href="http://www.firebirdomain.com/joomla/index.php?option=com_content&task=view&id=43">Events</a>
</li>
</ul>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sodales condimentum sem. Duis eu quam congue mauris fermentum porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Proin sit amet libero commodo erat lobortis molestie. Sed vehicula neque quis quam. Sed at dui. Mauris in sapien. Nulla facilisi. Mauris blandit lectus eget enim. Integer justo risus, pulvinar eu, posuere quis, mattis sit amet, augue. Praesent tellus risus, porttitor id, rhoncus eu, rutrum nec, lorem. Donec vitae lorem. Praesent eleifend tortor at nibh. Aliquam erat volutpat. Nulla facilisi. In hac habitasse platea dictumst. Morbi dui. Cras volutpat lectus eget augue. Mauris non felis.
Quisque in nibh sit amet massa interdum rutrum. Quisque arcu lorem, lobortis id, pharetra a, tincidunt nec, urna. Nullam gravida, nulla quis venenatis iaculis, sapien ante imperdiet nunc, vitae convallis nisi erat bibendum magna. Donec a ipsum eu neque fermentum fringilla. Nam faucibus justo. Praesent venenatis quam et ipsum. Quisque vel arcu vitae odio ultricies venenatis. Curabitur nulla magna, tristique eu, luctus quis, faucibus in, mauris. Donec consectetuer augue eget urna eleifend convallis. Quisque aliquet, urna ut pulvinar tempus, lacus ante sagittis arcu, at vestibulum orci nibh sit amet tellus.
Donec adipiscing. Vivamus vitae massa egestas ante tempus pharetra. Cras id nisi. Morbi dignissim ipsum a enim. Phasellus lorem. In hac habitasse platea dictumst. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nullam molestie. Quisque sed risus nec turpis egestas cursus. Aliquam erat volutpat. Vestibulum eleifend viverra purus. Duis at nisi.
Nam pulvinar libero sit amet magna. Mauris porttitor tincidunt nunc. Morbi eu erat quis ligula aliquam eleifend. Aliquam euismod purus sit amet lorem. Maecenas sollicitudin pharetra erat. Donec arcu. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla facilisi. Cras quam felis, dictum sed, viverra non, aliquet nonummy, odio. Nunc ligula. Praesent sit amet sem a est consectetuer interdum. Proin in odio nec odio elementum commodo. Praesent vitae nulla eget est pretium pellentesque. Integer lacinia tempus nisl.
Vivamus id urna eget felis interdum sodales. Donec lacinia euismod elit. Sed elit. Phasellus malesuada sollicitudin mi. Maecenas dignissim leo eget dui hendrerit porttitor. Donec egestas elit nec metus. Vestibulum tincidunt velit vel ante. Cras nisl nisl, porttitor at, porta vel, iaculis vitae, felis. Aenean sagittis feugiat quam. Phasellus id odio ut enim tincidunt pretium. Nullam turpis pede, dignissim sit amet, congue at, molestie sit amet, odio. Aenean pede orci, laoreet ac, sagittis at, sollicitudin vitae, mi. Cras ac neque. Etiam tincidunt condimentum leo. Pellentesque vitae est a diam ultricies commodo. Nam molestie odio vitae leo. Phasellus a dui in diam bibendum bibendum. Nulla dui.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sodales condimentum sem. Duis eu quam congue mauris fermentum porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Proin sit amet libero commodo erat lobortis molestie. Sed vehicula neque quis quam. Sed at dui. Mauris in sapien. Nulla facilisi. Mauris blandit lectus eget enim. Integer justo risus, pulvinar eu, posuere quis, mattis sit amet, augue. Praesent tellus risus, porttitor id, rhoncus eu, rutrum nec, lorem. Donec vitae lorem. Praesent eleifend tortor at nibh. Aliquam erat volutpat. Nulla facilisi. In hac habitasse platea dictumst. Morbi dui. Cras volutpat lectus eget augue. Mauris non felis.
</div>
<em>Footer</em>
</div>
</body>
</html>
Note the reduction of divs and loss of the tables....
I used relative image url paths whilst playing, so you will have to change back to your normal path if you like.
Cheers
Graeme
qwik3r
11-14-2006, 09:34 AM
wow you are awesome - honestly, its great to know that there are some people out there willing to just HELP, i truely truely appreciate it. It is like 99.9% fixed - only problem i have right now is the black bar (if you reload the page) you can see the content in it right now spills outside of the div in firefox. Also the div expands past the layout - any work around for this?
What do you guys think is a better way to design this site the float wait (the joomla link) or the other with absolute div positioning etc?
qwik3r
11-14-2006, 09:39 AM
See my response on the other site.
thank you also for taking the time to checkout my problem and respond - i saw your post on the other forum this morning but did not get a chance to fully look over it and unfortunately for some reason the site is down right now.
Centauri
11-14-2006, 06:41 PM
I had another play, now that I have more idea what you are achieving. I ended up putting both the login and latest news sections in one sidebar div floated right within the content, with a negative top margin to position it over the header and nav bar. There is no background on this div, the backgrounds being separate in login and latestnews - all this avoids problems with aligning the two sections and having overlapping backgrounds. I also used the blacknavbar graphic rather than the floatingblackbar for the login background to avoid a gap that appears if text is resized. There is also a * html hack for IE as IE doesn't recognise min-height.
I also noticed you put a left margin on the banner, presumably to jog the logo graphic across a bit. Unfortunately, this alsp moved the red background across. I had the logo on the h1 styling, so a small increase in percentage of margin-left of h1 tag does this.
Due to number of changes, I will repost the code in next reply (post too long)
Cheers
Graeme
Centauri
11-14-2006, 06:43 PM
html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>divtest</title>
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<ul id="nav">
<li>link1</li>
<li>link2</li>
<li>link3</li>
</ul>
<div id="content">
<div id="sidebar">
<form action="http://www.firebirdomain.com/joomla/index.php" method="post" name="login" id="login">
<label for="mod_login_username">Username</label>
<input name="username" id="mod_login_username" type="text" class="inputbox" alt="username" size="10">
<label for="mod_login_password">Password</label>
<input type="password" id="mod_login_password" name="passwd" class="inputbox" size="10" alt="password">
<input type="checkbox" name="remember" id="mod_login_remember" value="yes" alt="Remember Me">
<label for="mod_login_remember">Remember me</label>
<input type="submit" name="Submit" class="button" value="Login">
<input type="hidden" name="option" value="login">
<input type="hidden" name="op2" value="login">
<input type="hidden" name="lang" value="english">
<input type="hidden" name="return" value="http://www.firebirdomain.com/joomla/">
<input type="hidden" name="message" value="0">
<input type="hidden" name="336e6ae4fe84ce54a4f92f8e7bb9aec2" value="1">
</form>
<div id="latestnews">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sodales condimentum sem. Duis eu quam congue mauris fermentum porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Proin sit amet libero commodo erat lobortis molestie. Sed vehicula neque quis quam. Sed at dui. Mauris in sapien. Nulla facilisi. Mauris blandit lectus eget enim. Integer justo risus, pulvinar eu, posuere quis, mattis sit amet, augue. Praesent tellus risus, porttitor id, rhoncus eu, rutrum nec, lorem. Donec vitae lorem. Praesent eleifend tortor at nibh. Aliquam erat volutpat. Nulla facilisi. In hac habitasse platea dictumst. Morbi dui. Cras volutpat lectus eget augue. Mauris non felis.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sodales condimentum sem. Duis eu quam congue mauris fermentum porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Proin sit amet libero commodo erat lobortis molestie. Sed vehicula neque quis quam. Sed at dui. Mauris in sapien. Nulla facilisi. Mauris blandit lectus eget enim. Integer justo risus, pulvinar eu, posuere quis, mattis sit amet, augue. Praesent tellus risus, porttitor id, rhoncus eu, rutrum nec, lorem. Donec vitae lorem. Praesent eleifend tortor at nibh. Aliquam erat volutpat. Nulla facilisi. In hac habitasse platea dictumst. Morbi dui. Cras volutpat lectus eget augue. Mauris non felis.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sodales condimentum sem. Duis eu quam congue mauris fermentum porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Proin sit amet libero commodo erat lobortis molestie. Sed vehicula neque quis quam. Sed at dui. Mauris in sapien. Nulla facilisi. Mauris blandit lectus eget enim. Integer justo risus, pulvinar eu, posuere quis, mattis sit amet, augue. Praesent tellus risus, porttitor id, rhoncus eu, rutrum nec, lorem. Donec vitae lorem. Praesent eleifend tortor at nibh. Aliquam erat volutpat. Nulla facilisi. In hac habitasse platea dictumst. Morbi dui. Cras volutpat lectus eget augue. Mauris non felis.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sodales condimentum sem. Duis eu quam congue mauris fermentum porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Proin sit amet libero commodo erat lobortis molestie. Sed vehicula neque quis quam. Sed at dui. Mauris in sapien. Nulla facilisi. Mauris blandit lectus eget enim. Integer justo risus, pulvinar eu, posuere quis, mattis sit amet, augue. Praesent tellus risus, porttitor id, rhoncus eu, rutrum nec, lorem. Donec vitae lorem. Praesent eleifend tortor at nibh. Aliquam erat volutpat. Nulla facilisi. In hac habitasse platea dictumst. Morbi dui. Cras volutpat lectus eget augue. Mauris non felis.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sodales condimentum sem. Duis eu quam congue mauris fermentum porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Proin sit amet libero commodo erat lobortis molestie. Sed vehicula neque quis quam. Sed at dui. Mauris in sapien. Nulla facilisi. Mauris blandit lectus eget enim. Integer justo risus, pulvinar eu, posuere quis, mattis sit amet, augue. Praesent tellus risus, porttitor id, rhoncus eu, rutrum nec, lorem. Donec vitae lorem. Praesent eleifend tortor at nibh. Aliquam erat volutpat. Nulla facilisi. In hac habitasse platea dictumst. Morbi dui. Cras volutpat lectus eget augue. Mauris non felis.
</div>
</div>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sodales condimentum sem. Duis eu quam congue mauris fermentum porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Proin sit amet libero commodo erat lobortis molestie. Sed vehicula neque quis quam. Sed at dui. Mauris in sapien. Nulla facilisi. Mauris blandit lectus eget enim. Integer justo risus, pulvinar eu, posuere quis, mattis sit amet, augue. Praesent tellus risus, porttitor id, rhoncus eu, rutrum nec, lorem. Donec vitae lorem. Praesent eleifend tortor at nibh. Aliquam erat volutpat. Nulla facilisi. In hac habitasse platea dictumst. Morbi dui. Cras volutpat lectus eget augue. Mauris non felis.
Quisque in nibh sit amet massa interdum rutrum. Quisque arcu lorem, lobortis id, pharetra a, tincidunt nec, urna. Nullam gravida, nulla quis venenatis iaculis, sapien ante imperdiet nunc, vitae convallis nisi erat bibendum magna. Donec a ipsum eu neque fermentum fringilla. Nam faucibus justo. Praesent venenatis quam et ipsum. Quisque vel arcu vitae odio ultricies venenatis. Curabitur nulla magna, tristique eu, luctus quis, faucibus in, mauris. Donec consectetuer augue eget urna eleifend convallis. Quisque aliquet, urna ut pulvinar tempus, lacus ante sagittis arcu, at vestibulum orci nibh sit amet tellus.
Donec adipiscing. Vivamus vitae massa egestas ante tempus pharetra. Cras id nisi. Morbi dignissim ipsum a enim. Phasellus lorem. In hac habitasse platea dictumst. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nullam molestie. Quisque sed risus nec turpis egestas cursus. Aliquam erat volutpat. Vestibulum eleifend viverra purus. Duis at nisi.
Nam pulvinar libero sit amet magna. Mauris porttitor tincidunt nunc. Morbi eu erat quis ligula aliquam eleifend. Aliquam euismod purus sit amet lorem. Maecenas sollicitudin pharetra erat. Donec arcu. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla facilisi. Cras quam felis, dictum sed, viverra non, aliquet nonummy, odio. Nunc ligula. Praesent sit amet sem a est consectetuer interdum. Proin in odio nec odio elementum commodo. Praesent vitae nulla eget est pretium pellentesque. Integer lacinia tempus nisl.
Vivamus id urna eget felis interdum sodales. Donec lacinia euismod elit. Sed elit. Phasellus malesuada sollicitudin mi. Maecenas dignissim leo eget dui hendrerit porttitor. Donec egestas elit nec metus. Vestibulum tincidunt velit vel ante. Cras nisl nisl, porttitor at, porta vel, iaculis vitae, felis. Aenean sagittis feugiat quam. Phasellus id odio ut enim tincidunt pretium. Nullam turpis pede, dignissim sit amet, congue at, molestie sit amet, odio. Aenean pede orci, laoreet ac, sagittis at, sollicitudin vitae, mi. Cras ac neque. Etiam tincidunt condimentum leo. Pellentesque vitae est a diam ultricies commodo. Nam molestie odio vitae leo. Phasellus a dui in diam bibendum bibendum. Nulla dui.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sodales condimentum sem. Duis eu quam congue mauris fermentum porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Proin sit amet libero commodo erat lobortis molestie. Sed vehicula neque quis quam. Sed at dui. Mauris in sapien. Nulla facilisi. Mauris blandit lectus eget enim. Integer justo risus, pulvinar eu, posuere quis, mattis sit amet, augue. Praesent tellus risus, porttitor id, rhoncus eu, rutrum nec, lorem. Donec vitae lorem. Praesent eleifend tortor at nibh. Aliquam erat volutpat. Nulla facilisi. In hac habitasse platea dictumst. Morbi dui. Cras volutpat lectus eget augue. Mauris non felis.
<div id="footer">Footer</div>
</div>
</div>
</body>
</html>
wow you are a God among men. Thank you ever so much. It looks great. Few things that i noticed and want to ask you about. 1) the <h1> is that just a filler for the banner? Because if i remove it then the div collapses although the height/width are specified in the CSS file. Actually I think that is it lol - this site is designed to work with Joomla and it wasn't so hopefully now it will, i will test putting joomla php content into it (so that the black bar, menu and content are dynamic) and report back.
Centauri
11-14-2006, 07:54 PM
The h1 element contains the logo background picture - removing it will remove the logo. Doing it this way means there is one less non-semantic element there, and screen readers and search engine indexers will see something they know - a main heading (they can't read a graphic). The actual text is reduced so it can't be seen, and the graphic applied in the css for visual purposes only.
Cheers
Graeme
qwik3r
11-14-2006, 08:00 PM
ah i see - thanks - off topic but do you happen to know of a good png renderer for IE? I was using http://allinthehead.com/retro/69/ (bgsleight) for this site and then after you edited it it doesn't work. I think its because of the doc type
Centauri
11-14-2006, 09:03 PM
It looks as though the script is rewriting the background images in a different sequence to the initial rendering, upsetting the z index order....... (which is a pain in IE anyway). might take a while to sort this one.....
Cheers
Graeme
qwik3r
11-15-2006, 07:59 AM
yeah i don't understand what happened - quite annoying because i definitely need to fix that. I tried a few other scripts that don't really work either, it does the same exact thing, do you think its the doc type or because of you z-index like you said?
Centauri
11-15-2006, 08:11 AM
Looks like there might not really be a total solution to this. From the site http://dean.edwards.name/IE7/notes/ the following:
It is important to understand how this solution works when applied as a background image. The solution relies on Microsoft’s filter property. This provides Explorer with visual effects not normally provided by standard HTML.
To achieve these visual effects Explorer creates a supra layer on the browser window. Now this is all guess-work of course but a noticeable affect is, that if an element has a PNG background, then none of its child elements will receive mouse events. Killing "hovers" and the like.
Because a filter is not a real background image, it cannot be offset using background-position nor can it be tiled using background-repeat.
I think png transparency has been addressed in IE7 (not totally sure on that), so if it were me, I would do up some transparent gifs and use those in css rules targeting IE6 and under (* html hack).
Cheers
Graeme
qwik3r
11-15-2006, 09:10 AM
check out the site now i used a different code the only problem is that it doesn't work with the dang contentbg.png (#content) whats up with that?
qwik3r
11-15-2006, 11:09 AM
ah man just when you think your ready to take the bird out of the oven it decides to explode instead. I took divtest.html and edited it so that It would work with joomla, (http://www.firebirdomain.com/joomla)all is well in firefox and so far no content is breaking out of the divs etc. I look in IE and nothing shows up! Its because of the damn png filter for IE. Its the same exact code from the head in divtest.html, i just copied and pasted and put it into the head tag of the index.php file. If i remove the png filter code then the images show up in IE again - not too sure why this isn't working i think its conflicting with the php, if its not one thing its another.
*edit
is there anyway to get the bar to extend all the way down at all times to the footer regardless of content?
qwik3r
11-17-2006, 10:08 AM
any ideas?
qwik3r
11-21-2006, 12:33 AM
ttt
qwik3r
11-27-2006, 09:43 AM
ttt where did you guys go!? ;o(
webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved.