Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Getting into a mess!

This is a discussion on "Getting into a mess!" within the Web Page Design section. This forum, and the thread "Getting into a mess! are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 23rd, 2006, 11:27
csa csa is offline
Up'n'Coming Member
Join Date: Nov 2005
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Getting into a mess!

I've started a new layout but there are slight anomalies in FF. I would appreciate any advice on how to rectify these problems. Thank you.

- bottom footer div moves just under the top header.


- pushing the form down the page.

Code: Select all
/* CSS Document */
body{
background-color: #ffffff;
color:#000000;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
margin-top: 0px;
}
#container{
width: 760px;
border: solid black 0px; 
position: relative;
left: 50%;
margin-left: -380px;
background-image:url(images/backstrip.gif);
background-repeat:repeat-y;
}
#topheader{
width: 760px;
height: 88px;
}
#rightcolumnright{
width: 34px;
height: 480px;
background-color:#FFFFFF;
float:right;
}
#middlecolumn{
width: 252px;
height: 480px;
background-color:#FFFF66;
background-image:url(images/yellowstrip.jpg);
background-repeat:repeat-y;
float:right;
}
#firstcolumn{
width: 467px;
height: 480px;
background-color:#FFFFFF;
float:left;
}
#bottomlinks{
font-size:10px;
width: 760px;
height: 20px;
background-color:#405B76;
color:#FFFFFF;
text-align:center;
}
#imagerowright1{
width: 180px;
height: 200px;
float:right;
background-color:#FFFFFF;
padding-top: 20px;
padding-right:30px;
text-align:center;
}
#imagerowleft1{
width: 200px;
height: 200px;
float:left;
background-color:#FFFFFF;
padding-top: 20px;
padding-left:30px;
text-align:center;
}
#imagerow2right1{
width: 180px;
height: 200px;
float:right;
background-color:#FFFFFF;
padding-top: 30px;
padding-right:30px;
text-align:center;
}
#imagerow2left1{
width: 200px;
height: 200px;
float:left;
background-color:#FFFFFF;
padding-top: 30px;
padding-left:30px;
text-align:center;
}
#striptext{
width: 210px;
font-size:12px;
padding-left: 20px;
text-align:justify;
}
h1{
font-size:12px;
font-weight:bold;
color:#405B76;
}
li{
list-style-type:square;
}
/*form*/
div.row {
  clear: both;
  padding-top: 2px;
  }
div.row span.label {
  float: left;
  width: 150px;
  text-align: left;
  font-family:Arial, Helvetica, sans-serif;
  font-size:12px;
  font-weight: bold;
  color:#000000;
  }
div.row span.formw {
  float: left;
  width: 210px;
  text-align: left;
  margin-left: 15px;
  }
submit{
margin-left: 50px;
}
#form{
width: 400px;
padding-top: 5px;
padding-left: 50px;
}

Last edited by csa; Feb 24th, 2006 at 11:47.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Feb 23rd, 2006, 13:20
Rob's Avatar
Rob Rob is offline
Webforumz Founder

SuperMember
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,190
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Re: Getting into a mess!

add 'clear:both;' to bottomlinks css, and float your form left.

Updated CSS:-
Code: Select all
/* CSS Document */
body{
background-color: #ffffff;
color:#000000;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
margin-top: 0px;
}
#container{
width: 760px;
border: solid black 0px; 
position: relative;
left: 50%;
margin-left: -380px;
background-image:url(images/backstrip.gif);
background-repeat:repeat-y;
}
#topheader{
width: 760px;
height: 88px;

}
#rightcolumnright{
width: 34px;
height: 480px;
background-color:#FFFFFF;
float:right;
}
#middlecolumn{
width: 252px;
height: 480px;
background-color:#FFFF66;
background-image:url(images/yellowstrip.jpg);
background-repeat:repeat-y;
float:right;
}
#firstcolumn{
width: 467px;
height: 480px;
background-color:#FFFFFF;
float:left;
}
#bottomlinks{
font-size:10px;
width: 760px;
height: 20px;
background-color:#405B76;
color:#FFFFFF;
text-align:center; clear:both;
}
#imagerowright1{
width: 180px;
height: 200px;
float:right;
background-color:#FFFFFF;
padding-top: 20px;
padding-right:30px;
text-align:center;
}
#imagerowleft1{
width: 200px;
height: 200px;
float:left;
background-color:#FFFFFF;
padding-top: 20px;
padding-left:30px;
text-align:center;
}
#imagerow2right1{
width: 180px;
height: 200px;
float:right;
background-color:#FFFFFF;
padding-top: 30px;
padding-right:30px;
text-align:center;
}
#imagerow2left1{
width: 200px;
height: 200px;
float:left;
background-color:#FFFFFF;
padding-top: 30px;
padding-left:30px;
text-align:center;
}
#striptext{
width: 210px;
font-size:12px;
padding-left: 20px;
text-align:justify;
}
h1{
font-size:12px;
font-weight:bold;
color:#405B76;
}
li{
list-style-type:square;
}
/*form*/
div.row {
  clear: both;
  padding-top: 2px;
  }

div.row span.label {
  float: left;
  width: 150px;
  text-align: left;
  font-family:Arial, Helvetica, sans-serif;
  font-size:12px;
  font-weight: bold;
  color:#000000;
  }

div.row span.formw {
  float: left;
  width: 210px;
  text-align: left;
  margin-left: 15px;

  }
submit{
margin-left: 50px;
}
#form{
width: 400px;
padding-top: 5px;
padding-left: 50px; float:left;
}
__________________
Rob - Webforumz Founder

I am currently NOT available for SEO consultancy work

My Sites: Student Midwife Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 23rd, 2006, 14:18
csa csa is offline
Up'n'Coming Member
Join Date: Nov 2005
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Getting into a mess!

Thank you. I'm going to go and search google to find out what clear float does and how I can detect when to use it in future.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 23rd, 2006, 15:16
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Getting into a mess!

You use it anytime you have a element floated and you desire another element to appear below it, instead of next to it.

This is because when you float an element (<div id="sidebar">content</div>), everything that comes below it in the html will appear beside it. Sometimes, this is not what you want. You might prefer all elements below the above div to appear below it.

On the first element to appear below the floated element, you give it a 'clear' property in CSS. Whether it's 'left' 'right' 'both' depends on which way you floated the above element.

This was probably confusing... I tend to ramble.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
getting, mess

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ie6 utter mess&ie7 mess. safari&opera&firefox alright thosecars82 Web Page Design 2 May 21st, 2008 12:02
OK in IE6 - a mess in the rest... N7AS Web Page Design 13 Dec 27th, 2006 16:40
css mess! onlinegamesplayer Web Page Design 9 Jun 8th, 2006 16:37
My mess. Your problem. Sorry! timmytots Web Page Design 2 Nov 26th, 2005 23:53


All times are GMT. The time now is 16:31.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8