Troublesome DIVs (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


Stuey -> Troublesome DIVs (2/18/2005 8:37:24)

Hi

Apart from working for a living I do race management www.stuweb.co.uk is a simple low bandwidth job which I thought needed a facelift. Also there are some more database functions I am looking to implement so I started from the ground up.

As normally I tend to start with the Dreamweaver CSS layouts which generally after some tweaking, work quite well. CHEAT ! I hear you scream, well I don't pass it off as my own so I don't think it applies and it makes for rapid deployment for the most part.

ANYWAY, I have a problem with my results layout in Firefox, the layout behaves and in IE it doesn't, normally I have the problem the other way round but in this case I am really struggling.

Now I need the data to look like it does, in order to be readable on screen I'll be doing a CSV download anyway, which to be honest most people will use....

to see the site: http://www.stuweb.co.uk/swp2/ >All Results> Pick any event your there

so 800x600 www.stuweb.co.uk/swp2/ in Firefox looks a little cramped, but in IE it chucks the content DIV out the bottom.

1024x768 is okay,

CAn anyone offer up any solutions, If you want any code snippets then please let me know

Stuart




c1sissy -> RE: Troublesome DIVs (2/18/2005 8:54:07)

Hi Stuart,
I'm sure this has to do with the box model with IE.

In Firefox I have a very slight scroll bar, but your layout, to me at least, looks fine. In IE there is no scroll bar.

You could post your css, or a link to the file if you wish, but I think that maybe you will need to apply a small hack to this or use an IE condtional statment to fix it. Its not much of a difference though.

Curious to see what Jaybee has to add to this one. I believe she has a better understanding then I do right now [;)]




Stuey -> RE: Troublesome DIVs (2/18/2005 8:56:40)

Ahhh see I told you I cheated with dreamweaver I dont even rename the files :)

http://www.stuweb.co.uk/swp2/3col_Leftnav.css

or

/***********************************************/
/* 3col_leftNav.css                             */
/* Use with template 3col_leftNav.html          */
/***********************************************/

/***********************************************/
/* HTML tag styles                             */
/***********************************************/ 

body{
	font-family: Arial,sans-serif;
	color: #333333;
	line-height: 1.166;	
	margin: 0px;
	padding: 0px;
}

a{
	color: #006699;
	text-decoration: none;
}

a:link{
	color: #006699;
	text-decoration: none;
}

a:visited{
	color: #006699;
	text-decoration: none;
}

a:hover{
	color: #006699;
	text-decoration: underline;
}

h1{
 font-family: Verdana,Arial,sans-serif;
 font-size: 120%;
 color: #334d55;
 margin: 0px;
 padding: 0px;
}

h2{
 font-family: Arial,sans-serif;
 font-size: 114%;
 color: #006699;
 margin: 0px;
 padding: 0px;
}

h3{
 font-family: Arial,sans-serif;
 font-size: 100%;
 color: #334d55;
 margin: 0px;
 padding: 0px;
}

h4{
 font-family: Arial,sans-serif;
 font-size: 100%;
 font-weight: normal;
 color: #333333;
 margin: 0px;
 padding: 0px;
}

h5{
 font-family: Verdana,Arial,sans-serif;
 font-size: 100%;
 color: #334d55;
 margin: 0px;
 padding: 0px;
}

ul{
 list-style-type: square;
}

ul ul{
 list-style-type: disc;
}

ul ul ul{
 list-style-type: none;
}

label{
 font-family: Arial,sans-serif;
 font-size: 100%;
 font-weight: bold;
 color: #334d55;
}


/***********************************************/
/* Layout Divs                                 */
/***********************************************/

#masthead{
	padding: 10px 0px 0px 0px;
	border-bottom: 1px solid #006699;
	width: 100%;
	background-color:#006699;
}

#navBar{
	float: left;
	width: 20%;
	margin: 0px;
	padding: 0px;
	background-color: #006699;
	border-right: 1px solid #cccccc;
	border-bottom: 1px solid #006699;
}

#headlines{
  float:right;
	width: 10%;
	border-left: 1px solid #cccccc;
	border-bottom: 1px solid #cccccc;
	padding-right: 10px;
	background-color: #006699;
	z-index:-1;
}

#content{
	float: left;
  width: 65%;
}

/***********************************************/
/* Components                                  */
/***********************************************/

#siteName{
	margin: 0;
	padding: 0 0 0 10px;
}


/************* #globalNav styles **************/

#globalNav{
padding: 0px 0px 5px 10px;
border-bottom: 1px solid #006699;
color: #cccccc;
}

#globalNav img{
 display: block;
}

#globalNav a {
	font-size: 90%;
	padding: 0 4px 0 0;
	color:#FFFFFF; font-style:italic;
}

/*************** #pageName styles **************/

#pageName{
	margin: 0px;
	padding: 0px 0px 0px 10px;
}

/************* #breadCrumb styles *************/

#breadCrumb{
	font-size: 80%;
	padding: 2px 0px 0 10px;
}


/************** .feature styles ***************/

.feature{
	padding: 0px 0px 10px 10px;
	font-size: 80%;
}

.feature h3{
	padding: 30px 0px 5px 0px;
	text-align: center;
}

.feature img{
	float: left;
	padding: 10px 10px 0px 0px;
}


/************** .story styles *****************/

.story{
	clear: both;
	padding: 5px 0px 0px 5px;
	font-size: 80%;
	border:1px solid #006699;
	margin-left:10px;
	margin-top:10px;
}

.story p{
	padding: 0px 5px 0px 0px;
	text-align:justify;
}
.story a{
font-weight:bold;

}
.story a:hover{
text-decoration:overline;
text-decoration:underline;


}


/************* #siteInfo styles ***************/

#siteInfo{
	clear: both;
	border: 1px solid #cccccc;
	font-size: 75%;
	color: #cccccc;
	padding: 10px 10px 10px 10px;
}

#siteInfo img{
	padding: 4px 4px 4px 10px;
	vertical-align: middle;
}


/************* #search styles ***************/

#search{
	padding: 5px 0px 5px 10px;
	border-bottom: 1px solid #cccccc;
	font-size: 90%;
}

#search form{
 margin: 0px;
 padding: 0px;
}

#search label{
	display: block;
	margin: 0px;
	padding: 0px;
}


/*********** #navBar link styles ***********/

#navBar ul a:link, #navBar ul a:visited {display: block; color:#FFFFFF; font-style:italic;}
#navBar ul a:hover{display: block; color:#000000; font-style:italic;}
#navBar ul {list-style: none; margin: 0; padding: 0;}

/* hack to fix IE/Win's broken rendering of block-level anchors in lists */
#navBar li {border-bottom: 1px solid #EEE;}

/* fix for browsers that don't need the hack */
html>body #navBar li {border-bottom: none;}


/*********** #sectionLinks styles ***********/

#sectionLinks{
	position: relative;
	margin: 0px;
	padding: 0px;
	border-bottom: 1px solid #cccccc;
	font-size: 90%;
}

#sectionLinks h3{
	padding: 10px 0px 2px 10px;
}

#sectionLinks a {
	display: block;
	border-top: 1px solid #cccccc;
	padding: 2px 0px 2px 10px;
}

#sectionLinks a:hover{
	background-color: #dddddd;
	color:#000000;
}


/*********** .relatedLinks styles ***********/

.relatedLinks{
	position: relative;
	margin: 0px;
	padding: 0px 0px 10px 10px;
	font-size: 90%;
}

.relatedLinks h3{
	padding: 10px 0px 2px 0px;
}

.relatedLinks a:link,
.relatedLinks a:visited {
	display: block; 
}

/************** #advert styles **************/

#advert{
	padding: 30px 0px 10px;
}

#advert img{
	display: block;
}


/************** #headlines styles **************/

#headlines{
	margin: 0px;
	padding: 10px 0px 20px 10px;
	font-size: 80%;
}

#headlines p{
	padding: 5px 0px 5px 0px;
}







jaybee -> RE: Troublesome DIVs (2/18/2005 10:50:35)

Yes, Deb is right. It's down to the box model problems with IE. Easiest way to check is to reduce your content box from 65% to 60% and try it out, if it stays where it should then you'll have to play around with the width, padding, borders and margins until you're happy with the layout in both browsers.

Either that or you put a hack in to make it work in IE.




Stuey -> RE: Troublesome DIVs (2/18/2005 10:52:53)

hack?




c1sissy -> RE: Troublesome DIVs (2/18/2005 10:56:15)

Yes, do a google on hacks, and there is also the IE conditional statment as well.

Actually HERE is the link for you. Just click it and you should find information on it.

I also suggest reading up on the BOX MODEL which should also give you some information on the hacks as well, btw when you click this link it will also give you a google search page all ready for you to go through [;)]

Also, go through the link under my sig where it says postioniseverything, there is some excellent articles within that site on a good deal of things IE related.




Stuey -> RE: Troublesome DIVs (2/18/2005 11:22:26)

or perhaps we were looking in the wrong place, removing the 'nowrap' option for the table and leaving the size at 60% seems to work at 800x 600 in FF and IE

good enough for me anyway :)

thansk for the *lite* reading for the weekend




jaybee -> RE: Troublesome DIVs (2/18/2005 11:43:59)

Table!? What table? The code I'm looking at is all divs.




Stuey -> RE: Troublesome DIVs (2/18/2005 12:41:20)

i bet you didnt read the first post did you,

I only have the specific trouble on the race results page!




c1sissy -> RE: Troublesome DIVs (2/18/2005 13:44:58)

If we didn't read the first post we would not know what to look at when we pulled the page up, unless that is you gave us the wrong page?

Your style sheet that you have posted for us to view, makes no mention of a table, are we mind readers?

I think your comment to Jaybee is totally unfair.




jaybee -> RE: Troublesome DIVs (2/18/2005 14:41:16)

The race results link on your homepage doesn't do anything. The All Results page does and that has, at the top, race results.

There are no tables on that page

[edit] OK, I found the tables. The reason for the confusion was that your main results page was dropping the content in 800 x 600 as well.




c1sissy -> RE: Troublesome DIVs (2/18/2005 15:17:03)

All I see in that code are divs, and lists.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
6.298828E-02