Results 1 to 8 of 8

Thread: CSS Design Problem

  1. #1
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default CSS Design Problem

    Hi all,
    I am in the middle of re-designing my website, from over 6 slow nested tables, to fast css. I was almost done when I got to the footer. It is normally at the bottom of the page, below the sidebar. I have tryed everthing I know about css (which isn't a whole lot). Please help.
    The page:
    http://ohptesting.awardspace.com/
    The layout css page:
    http://ohptesting.awardspace.com/layout.css
    THANKS,
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    try addding clear:both to the footer class.

  3. #3
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    Thanks Medyman,
    It did not completly work though. It is half under some things in the middle of the page.
    How can I get this to work?
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Move the copyright div to the bottom of your markup.

  5. #5
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    o.k. I did, but still nothing happened.
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  6. #6
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    I took another look at your markup (that's some markup btw...don't know how you work with it).

    I said before that you should add clear:both to your footer class. That should really be added to your "end" class.

    Some general tips:
    1) Take out some more of those tables. I know you're switching from a table layout to CSS. But it sounded like from your first post that you were done. I think you can go a little further and take out even more.

    * There are a lot of "empty" tags (i.e. tags with no content inside). They might be placeholders but if not, you should really remove them from your markup.

    To my point #1, your footer or "end" div is a perfect example of where you can get rid of tables.

    THIS:
    Code:
    <div class="end">
    	<table cellpadding=0 cellspacing=0 style="margin-left: 14px; margin-right: 14px;" class=center>
    		<tr>
    			<td class=loose_graybar>
    				<table>
    					<tr>
    						<td>
    							<a href="#"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Strict" height="31" width="88"></a></td><td><a href="#"><img src="./images/anybrowser.png" alt="Any Browser Compatable Site"></a>
    						</td>
    					</tr>
    				</table>
    			</td>
    		</tr>
    	</table>
    	<div class='graybar_full'>
    		<div class="footer">
    			Copyright &copy;2005-2008 Onion House Produtions&trade; All Rights Reserved &raquo; Your iP: XX.XXX.XXX.XXX
    		</div>
    	</div>
    </div>
    Can really be trimmed down to this:
    Code:
    <div class="end">
    	<a href="#"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Strict"></a>
    	<a href="#"><img src="./images/anybrowser.png" alt="Any Browser Compatable Site"></a>
    	Copyright &copy;2005-2008 Onion House Produtions&trade; All Rights Reserved &raquo; Your iP: XX.XXX.XXX.XXX
    </div>
    Apply some basic CSS, and you have the same result with much cleaner markup

  7. #7
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    I took another look at your markup (that's some markup btw...don't know how you work with it).
    I do it all in php, so I rarely ever look at the actual markup.
    ---
    O.K. I added clear: both; to the class "end". Still nothing. Why doesn't this work? I will change the footer stuff later.
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  8. #8
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    I also got lost a bit, but your layout design seems not to difficult. That's to say the design not your code . I would put - and i think you did - put your topnavbar in a <div>. Everything on the left in a other <div> position absolute. And everyting from the main part to the bottom also in a <div>, postion absolute too and some padding. Seems cleaner to me. From there on you can get rid of all those classes and divs and use identifiers.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •