Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE DREAMWEAVER: HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Footer jutting out in Firefox - IE even worse!

Cow Forums : Adobe Dreamweaver

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
Footer jutting out in Firefox - IE even worse!
by Tony March on Apr 28, 2009 at 4:47:33 pm

Hi people,

I'm trying to rebuild my portfolio site much nicer than what it is at present. Before I used tables to divide everything, so now I'm looking at CSS and learning more than the last time. I'm getting somewhere, slowly.
I've included some images and I'm hoping I can get some advice or help with a problem I've got.



This is my Dreamweaver scene, everything neat and positioned as it should be, finally got some understanding of Divs, Floating Divs and CSS.

But why is it so different in the browsers?!? I generally use Firefox for previewing. Floating the green 'footer' Div right is the only way I can keep the Div in position, but it just juts out which is very disheartening cos I don't know why, and I'm a bit new to this. It looks even worse in IE with boxes all over the place.





Is there something I'm doing wrong (obviously I am). I've got 6 pages to do for my site, all very similar in layout to this one, and all neatly laid out in PS and ready to be built in Dreamweaver, and its my folio site so I want to do it well, as well as pick up a bit of Dreamweaver on the way :)

I know how you all need to see the code, I've tried publishing to the web but having no joy as yet, so I can provide the code in a text file if anyone needs it. I also began with one of Dreamweavers Templates and modified it to get to this result, so I' think I did right there.

Can anyone advise. I've been scouring through the tutorials and reference and become bogged down, so I thought I'd come here.

All help very much appreciated.

Respond to this post   •   Return to posts index

Re: Footer jutting out in Firefox - IE even worse!
by Richard Williams on Apr 28, 2009 at 7:51:17 pm

post the code here (remember to highlight it and click the code button on the top of the box so everyone can see it)



Richard Williams

Respond to this post   •   Return to posts index

Re: Footer jutting out in Firefox - IE even worse!
by Tony March on Apr 28, 2009 at 9:25:40 pm

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>3d-pixlmedia02</title>
<style type="text/css">
<!--

body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
color: #FFFFFF;
background-color: #999999;
margin: 0;
padding: 0;
}
a:link {
text-decoration: none;
color: #999999;
}
a:visited {
text-decoration: none;
color: #999999;
}
a:hover {
text-decoration: none;
color: #FFFFFF;
}
a:active {
text-decoration: #FFFFFF;
}
h1 {
font-family: Impact, "Arial Rounded MT Bold", Alba;
font-size: 20px;
color: #FFFFFF;
}
h2 {
font-family: Impact, "Arial Rounded MT Bold", Alba;
font-size: 36px;
color: #FFFFFF;
padding-right:-30px;
margin: 0px;
}

.pagestyle #container {
width: 1024px;
height: 768px;
background-image:url(../Web%20pages_00.jpg);
text-align: left;
background-position: center top;
margin: auto;
border: 1px solid #FF0000;
top: auto;
padding: 0px;
left: auto;
right: auto;
bottom: auto;
}
.pagestyle #LHcolumn {
width: 300px;
height: 768px;
float: left;
color: #FFFFFF;
}
.ul#nav {
height: 195px;
padding-top: 50px;
list-style: none;
}
.ul#nav li a{
display:block;
width:auto;
}
.pagestyle #LHmiddle {
width: 300px;
height: 249px;
float: left;
background-color: #CCCCCC;
}
.pagestyle #LHstatement {
width: 300px;
height: 258px;
float: left;
background-color: #000000;
}
.pagestyle #BRfooter {
width: 724px;
height: 258px;
background-color: #006600;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
float: right;
}
.pagestyle #bucketIMG {
width: 65px;
height: 65px;
padding: 0px;
left: 0px;
top: 0px;
background-image: url(../thumbs/BTN%20TEST%2065px_A.jpg);
float: left;
clear: both;
}
.pagestyle #bucketIMGtop {
width: 65px;
height: 65px;
padding: 0px;
left: 0px;
top: 0px;
background-image: url(../thumbs/BTN%20TEST%2065px_A.jpg);
float: right;
clear: both;
}
.pagestyle #mainContent {
margin-left: 300px;
height: 510px;
width: 724px;
padding-top: 0;
padding-right: 0px;
padding-bottom: 0;
padding-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.fltrt {
float: right;
margin-left: 8px;
}
.fltlft {
float: left;
margin-right: 8px;
}
.clearfloat {
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
-->
</style>

</head>




<body class="pagestyle">

<div id="container">

<div id="LHcolumn">
<div id="bucketIMGtop"></div>
<div id="bucketIMGtop"></div>
<div id="bucketIMGtop"></div>
<div id="bucketIMGtop"></div>
<table width="235" height="261" cellspacing="0" bgcolor="#000000">
<tr>
<td height="65" colspan="2" bgcolor="#000000"><h2 align="center">3d-pixlmedia</h2></td>

</tr>
<tr bgcolor="#000000">
<td height="196" width="47">&nbsp;</td>
<td>
<ul id="nav">
<li> <a href="#"></a> ABOUT</li>
<li> <a href="#"></a> REELS</li>

<li> <a href="#"></a> STILL IMAGES</li>
<li> <a href="#"></a> RESUME</li>
<li> <a href="#"></a> CONTACT</li>
</ul> </td>

</tr>
</table>

<div id="LHmiddle"></div>

<div id="LHstatement">
<p align="right"> CGI and animation, service available
for freelance and contract hire offering
a complete service of 3d visualisation
motion graphics and computer
generated imagery to:</p>
<p align="right">&nbsp;</p>
<p align="right">Property developers <br />

Architects <br />
Marketing <br />
Web development <br />
CG for television and documentaries </p>
</div>
</div>


<div id="mainContent">


<p>main content</p>

<p>vfkdv</p>
<p>fgkfpdagkfa</p>
<p>asgop[gk</p>
<p>agkof[gkfdsgkfdsgd</p>
<p>agfdsgkfd[gkfdblfboty</p>

</div>

<div id="BRfooter">
<div id="bucketIMG"></div>
<div id="bucketIMG"></div>
<div id="bucketIMG"></div>
<div id="bucketIMG"></div>
<br class="clearfloat" />

</div>

<br class="clearfloat" />
<!-- end #container -->
</div>
</body>
</html>


Respond to this post   •   Return to posts index


Re: Footer jutting out in Firefox - IE even worse!
by Richard Williams on Apr 28, 2009 at 9:57:02 pm

The CSS GURU that is Fernando is here so i'll leave this one for him (I'd use a table :o) but Fernando is the man here.

Richard Williams

Respond to this post   •   Return to posts index

Re: Footer jutting out in Firefox - IE even worse!
by Tony March on Apr 28, 2009 at 9:31:27 pm

Thanks,I've just uploaded some html code. I did as you suggested so I hope the highlighter I downloaded works. Sorry if it seems like a bit too much code.

Respond to this post   •   Return to posts index

Re: Footer jutting out in Firefox - IE even worse!
by Tony March on Apr 29, 2009 at 9:52:57 am

I've just solved my problem after a read of this thread
http://forums.creativecow.net/thread/191/859303

by absolutely positioning my BRfooter to the main container relative.

Respond to this post   •   Return to posts index


Re: Footer jutting out in Firefox - IE even worse!
by Fernando Mol on Apr 29, 2009 at 5:57:45 pm

Thanks for the introduction, Richard.

And sorry to be late, Tony.

I'm actually traveling and I have limited time with internet access. The swine flu totally messed up my activities, but I'm OK.

Back to the post, I was going to ask what was your exact problem and created a couple of graphics to explain the different div layouts possible to arrange your content. I will upload the two I finished even if you already solved your problem. Maybe they can be useful to someone else.





The HTML flow goes down with gravity. Every new element appears below the previous one. This is the natural flow.

In the first example two div elements are grouped inside one div, the left column, and the natural flow is broken floating the left column to the left. This way the following elements will continue "around" the floated element.

In the second example the elements look exactly the same but the layout is different. If you need to align the top elements or the bottom ones you can "wrap" them with a div. Every element for the left column is floated so the content align itself.

Am I making any sense?

If you want your footer not to align at the right of your left column you can "clear float" your footer. That way it will continue flowing down with gravity.

Anyway, Tony, I found some garbage in the code you posted, remember always use the "Clean XHTML" tool inside Dreamweaver.

Respond to this post   •   Return to posts index

Re: Footer jutting out in Firefox - IE even worse!
by Fernando Mol on Apr 29, 2009 at 6:01:49 pm

Also, every browser has his own default margin and padding for every HTML element. It's a good CSS practice to clean those defaults. Use this rule at the beginning of your CSS.

* {
padding:0;
margin:0;
}


You will have to define padding and margin for each element, but this way you'll have no surprises when you change browsers.

Respond to this post   •   Return to posts index

Re: Footer jutting out in Firefox - IE even worse!
by Tony March on Apr 29, 2009 at 6:57:13 pm

Hi Fernando, thanks for describing that layout, it makes more sense now. I think I could have got away without the absolutely positioned div that contains the four small bottom divs, after your description but I've laid all the pages out now, I'll make a more cleaner effort next time.

I've also made a couple of the four top divs into rollover buttons using css rather than the inserted rollover image method. (It simulates a render bucket). My code page is filling up with CSS now but I'm picking it up quickly and understanding it all.


Q - With this in mind, since I'm creating a lot of css on the page, is it possible to 'export' what I've written to a new linked css file instead, hence removing all the bracketd content thats building up and also updating all references to those css in the code itself.?

Respond to this post   •   Return to posts index


Re: Footer jutting out in Firefox - IE even worse!
by Fernando Mol on May 1, 2009 at 2:05:42 am

Select your CSS rules in the CSS panel.

Right click.

Select: "Move CSS rules"

In the popup window select "A new style sheet" and click OK

Name your new Style Sheet


Now you can attach that style sheet to every new page. Just remember if you edit those rules your entire site (or at least all HTML files with that style sheet attached) will be updated.

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]