Web Design Forums

HTML and CSS Help

Having problems with these web design scripting? Ask here.

CSS floats not previewing properly



Site of the Month Voting - Now Open. CAST YOUR VOTE NOW!

Reply
 
LinkBack Thread Tools
Old February 26 '10, 01:25 PM (#1)
emRae77 is offline
New Member!
 
emRae77's Avatar
 
Join Date: February 2010
Posts: 8
emRae77 is an unknown quantity at this point
CSS floats not previewing properly

Hi I'm teaching myself how to create a website with CSS and I've hit a wall.
I can't seem to get my floats to work properly in Firefox 5.0. It looks correct in Safari 4. I still need to test it in some other browsers as well. Here's the link to my site http://nutritiononrequest.com/test.html

Last edited by emRae77; February 27 '10 at 03:01 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 26 '10, 01:53 PM (#2)
mlseim is offline
WDF Staff
 
mlseim's Avatar
 
Join Date: April 2004
Location: Cottage Grove, Minnesota
Posts: 3,359
mlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud of
Upload your site, but change the name of your main page from "index.html"
to "test.html" and then give us the URL so we can see it.

Anyone else visiting your site will see the "old index.html" ... whatever that is now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 27 '10, 02:49 AM (#3)
emRae77 is offline
New Member!
 
emRae77's Avatar
 
Join Date: February 2010
Posts: 8
emRae77 is an unknown quantity at this point
thanks, that is much easier! Here is the URL http://nutritiononrequest.com/test.html

I was able to fix the background issues but there's still a problem with the floats in Firefox.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 27 '10, 11:09 AM (#4)
aeroweb99 is offline
<div id="learn"></div>
 
aeroweb99's Avatar
 
Join Date: February 2008
Location: Port Huron, Michigan
Posts: 965
aeroweb99 is just really niceaeroweb99 is just really niceaeroweb99 is just really niceaeroweb99 is just really niceaeroweb99 is just really nice
Ok, your comments are screwing things up. You can only have 2 dashes for whatever reason. When I edited some of the comments like this:

<!--comment-->

and got rid of the extra dashes, the floats slid into place. They were actually showing up on the page and taking up extra space and that's what shoved your sidebar down.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 27 '10, 04:40 PM (#5)
emRae77 is offline
New Member!
 
emRae77's Avatar
 
Join Date: February 2010
Posts: 8
emRae77 is an unknown quantity at this point
wow can't believe it was the comments messing everything up. it's always the small things thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 27 '10, 08:32 PM (#6)
emRae77 is offline
New Member!
 
emRae77's Avatar
 
Join Date: February 2010
Posts: 8
emRae77 is an unknown quantity at this point
okay, got the floats to actually float but... now for some reason my rightColumn float will not line up with the bottom of my header div. Arrrg. I'm at a loss for what's wrong...i've tried changing my margins a bunch of different ways and looked for anything that might bump that right div down but I can't find anything.

http://nutritiononrequest.com/test.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 27 '10, 09:21 PM (#7)
aeroweb99 is offline
<div id="learn"></div>
 
aeroweb99's Avatar
 
Join Date: February 2008
Location: Port Huron, Michigan
Posts: 965
aeroweb99 is just really niceaeroweb99 is just really niceaeroweb99 is just really niceaeroweb99 is just really niceaeroweb99 is just really nice
I'm going to say it's the h1 tag inside. Set the margin top to 0. You may have to tie it in with the .mb class like this:

Code:
.mb h1 {margin-top: 0;}
Although I think it would look a little better if you lowered the left column to where the right one is. It looks cramped the way it touches the green part.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » HTML and CSS Help

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
User Infomation
Your Avatar

Site Of The Month
Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 02:08 PM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164