Page 1 of 1

My H2 content block doesnt line up in IE

Posted: Mon Aug 03, 2009 3:56 pm
by Mury
Hi Guys,  I have a simple content block that displays as a at the top of a page.  In Ffox it lines up on the left, in IE it seems to be forced to the right. Any ideas, Ive put text-align:left all over the style sheet with no effect on IE. I tried a div around the content.


      {content block="titleoption" oneline="true"}

----------------------------------------
Any ideas would be welcome, thanks.

Re: My H2 content block doent line up in IE

Posted: Mon Aug 03, 2009 6:32 pm
by Dr.CSS
Not w/o a link, you show just the html and no css or anything...

Re: My H2 content block doesnt line up in IE

Posted: Tue Aug 04, 2009 6:11 am
by Mury
Hi DrSSS, hmm - very true,  its on a test site to go live this morning.
www2.imspecialresor.se(test site)
Here is the stylesheet :

Code: Select all

/* ----------------------------------------------
   HTML ELEMENTS
------------------------------------------------- */ 

/* Top Elements */
* { margin: 0; padding: 0; outline: 0 }

body {
	font: 11px/165% "Lucida Grande", Geneva, Verdana, Arial, Helvetica, sans-serif;
	color: #666666; 	
	margin: 0; padding: 0 0 50px 0; 
	background: #fff;
	text-align: left;
}

/* Links */
a, a:active, a:link {
	text-decoration: none;
	color: #0B9AC7;		
}
a:visited {
	text-decoration: none;
}
a:hover {
	background: #F1F9DA; 
	color: #895F30;
	border-bottom: 1px dotted #895F30;
}

/* headers */
h1, h2, h3 {
	font-family: "Trebuchet MS", Tahoma, Arial, Sans-serif;
	color: #555;
        text-align:left;
}
h1 {
	font-family: Georgia, "Times New Roman", Times, serif;
	/*font-size: 350%;	*/
        font-size: 300%;
	font-weight: normal;
	letter-spacing: -2px;
	padding: 10px 10px 5px 10px;
	margin: 0;
}
h2 {
       font-size: 200%;
       /*font-size: 12pt;*/
	color: #895F30;
	padding: 10px 10px 5px 10px;
	margin: 0;
	text-align: left;
}

h3 {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 170%;
        color: #895F30;
	font-weight: normal;
	padding: 10px 10px 5px 10px;
	margin: 0;	
}

}
h4 {
	font-size: 170%;	
	font-weight: normal;
	padding: 15px 10px 5px 10px;
	margin: 0;	
}




p, dl { padding: 10px; margin: 0; }

ul, ol {
	margin: 10px 20px;
	padding: 0 20px;
}
ul { list-style: none; }

dt {
  font-weight: bold;
  color: #895F30;
}
dd {
  padding-left: 25px; 
}

/* images */
img {
	background: #fafafa;
   border: 1px solid #dcdcdc;
	padding: 5px;
}
img.float-right {
  	margin: 5px 0px 10px 10px;  
}
img.float-left {
  	margin: 5px 10px 10px 0px;
}

code {
  	margin: 5px 0;
  	padding: 15px;
  	text-align: left;
  	display: block;
  	overflow: auto;  
  	font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
  	/* white-space: pre; */
  	border: 1px solid #ECF8FE;
	background: #ECF8FE;  
}
acronym {
  cursor: help;
  border-bottom: 1px dotted #895F30;
}
blockquote {
	margin: 15px 10px;
 	padding: 10px 10px 10px 35px;  
   border: 1px solid #ECF8FE;
	background: #ECF8FE url(uploads/Freshmedia/quote.jpg) no-repeat 10px 10px;
	font-weight: normal;
	font-size: 1.5em;
	line-height: 1.5em;
	font-style: italic;
	font-family: Georgia, "Times New Roman", Times, serif;	
	color: #976957;	
}

/* start - table */
table {
	border-collapse: collapse;
	margin: 15px 10px;	
}
th {
	/*background: #ADD8E6 url(uploads/Freshmedia/header-bg.jpg) repeat-x 0 -100px;*/
	height: 38px;
	padding-left: 12px;
	padding-right: 12px;
	color: #fff;
	text-align: left;
	/*border-left: 1px solid #78C7FA;*/
	/*border-bottom: solid 2px #fff;*/
}
tr {
	height: 34px;
	background: #fff;
}
td {
	padding-left: 11px;
	padding-right: 11px;
	/*border: 1px solid #EDEDED;	*/
}	
/* end - table */

/* form elements */
form {
	margin: 15px 10px; padding: 5px 10px 20px 10px;
	border: 1px solid #f1f1f1; 
	background: #fdfdfd; 	
}
label {
	display: block;
	font-weight: bold;
	margin: 8px 0 5px 0;
	color: #895F30;
}
input, select {
	padding: 4px;
	font: normal 1em Verdana, sans-serif;
	color: #666666;
	background: #fff;  	
}
textarea {
	width: 400px;
	padding: 4px;
	font: normal 1em Verdana, sans-serif;
	height: 100px;
	display: block;
	color: #666666;
}
input, textarea, select {
	background: #fff;
  	border-width: 1px;
  	border-style: solid;
  	border-color: #D4D4D4 #ebebeb #ebebeb #d4d4d4; 
}

input.button { 
	font: bold 12px Arial, Sans-serif; 
	height: 30px;
	margin: 0;
	padding: 2px 3px; 
	color: #555;
	background: #E6E6E6;
	
	border-width: 1px;
  	border-style: solid;
  	border-color: #ebebeb #d4d4d4 #d4d4d4 #ebebeb;
}

/* search form */
.searchform form{
	background-color: transparent;
	border: none;	
	margin: 0; padding: 12px 0 15px 8px;	
	width: 250px;	
}
.searchform p { margin: 0; padding: 0 0 10px 0; }
.searchform input.textbox { 
	width: 170px;
	color: #777; 
	height: 18px;
	padding: 2px;	
	vertical-align: top;
}
.searchform input.button { 
	width: 60px;
	height: 24px;
	padding: 2px 5px;
	vertical-align: top;
}

/*------------------------------------------
   LAYOUT
-------------------------------------------*/ 
#wrap-out {
	position: relative;
	/*background: #fff url(uploads/Freshmedia/header-bg.jpg) repeat-x;*/
	width: 900px;	
	margin: 0 auto;
	text-align: left;	
}

#wrap-outg {
	position: relative;
	/*background: #fff url(uploads/Freshmedia/tb/jeep175.jpg) no-repeat left top;*/
       /*background: #fff url(uploads/Freshmedia/head/rotate.php) no-repeat left top;*/
        background: no-repeat right top;
	width: 900px;	
	margin: 0 auto;
	text-align: left;	
}

#wrapg {
	/*background: url(uploads/Freshmedia/tb/jep-w2.jpg) no-repeat right top;*/
        background: no-repeat right top;
	width: 900px;	
	margin: 0 auto;	
}

#hwrap {
	/*background: url(uploads/Freshmedia/header-photo.jpg) no-repeat right top;*/
	width: 900px;	
	margin: 0 auto;	
}


#wrap {
	/*background: url(uploads/Freshmedia/header-photo.jpg) no-repeat right top;*/
         background: no-repeat right top;
	width: 900px;	
	margin: 0 auto;
	text-align: left;	
}


#content-wrap {
	position: relative;
	clear: both;
	float: left;	
	width: 870px;	
	padding: 0; 		
	margin-left: 5px;	
	background: transparent;
	display: inline;	
}
#header {
	position: relative;
	width: 900px;	
	/*height: 325px;	*/
        height:180px;
	padding: 0;	
	margin: 0 auto;
	background: transparent;
}

/*  Navigation  */
#nav {
	position: absolute;
	clear: both;	
       text-transform:none;
	margin: 0; padding: 0;		
	/*height: 35px;*/
        height:35px;
	left: 0;	top: 15px;	
	z-index: 99999;
}
#nav ul {
	float: left;
	list-style: none;
	width: 900px;		
	height: 35px;
	/*text-transform: uppercase;*/
        text-transform:none;
	margin: 0;	padding: 0;	
	display: inline;
}
#nav ul li {
	display: inline;
	margin: 0; padding: 0;
       text-transform:none;
}
#nav ul li a {
	float: left;
	margin: 0;	padding: 0 10px;
	font: bold 15px/35px "Trebuchet MS", Helvetica, Arial, Geneva, sans-serif;
	/*text-transform: uppercase;*/
        text-transform: none;
	text-decoration: none;	
	letter-spacing: -0.3px;
	/*color: #694f42;*/
        color: #0c9bc2;
}
#nav ul li a:hover, 
#nav ul li a:active {
	color: #111;
	background: none;
	border: none;
       text-transform:none;
}
#nav ul li#current a {	
	color: #0da7d2;	
       text-transform:none;
}

#header h1#logo-text a {
	position: absolute;
	margin: 0; padding: 0;
	font: normal 36px Georgia, "Times New Roman", Times, serif;
	letter-spacing: -1.5px;
	color: #fff;
	text-transform: none;
	text-decoration: none;
	
	/* change the values of top and left to adjust the position of the logo*/
	top: 65px; left: 250px;	
}
#header h1#logo-text a:hover {
	background: none;	border: none;
}

#header p#intro {
	position: absolute;
	margin: 0; padding: 0;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: bold;
	font-size: 18px;
	line-height: 1.6em;
	/*font-style: italic;*/
	text-transform: none;
	color: #ffffff;
	width: 300px;
	
	/* change the values of top and left to adjust the position */
	top: 115px; left: 250px;		
}


/* Main Column */
#main {
	float: right;
	width: 610px;
	padding: 0; margin: 0;
	display: inline;	
        /*border:1px solid grey;*/

}
#main h2 {
	padding-bottom: 3px;
	margin-top: 15px;
	/*font: normal 3.5em Georgia, "Times New Roman", Times, serif;*/
        font: normal 2.5em Georgia, "Times New Roman", Times, serif;
	color: #895F30; 
	letter-spacing: -2px;	
	text-transform: none;
	border-bottom: 1px solid #ebebeb;
	text-align: left;	
}
#main h2 a {
	color: #895F30;
	text-decoration: none;	
	background: none; border: none;
	text-align: left;
}
#main ul li {
	list-style-image: url(uploads/Freshmedia/bullet.gif);
}

/* Sidebar */	
#sidebar {
	float: left;
	width: 220px;
	padding: 0; margin: 15px 0 0 0;		
	display: inline;	
}	
#sidebar h3 {
	margin-top: 10px;
	padding: 15px 5px 3px 5px; 
	font: normal 2em 'trebuchet MS', Tahoma, Helvetica, Arial, sans-serif;	
	color: #666666;	
	letter-spacing: -.5px;	
}
#sidebar ul.sidemenu {
	text-align: left;
	margin: 7px 5px 8px 0px; padding: 0;
	text-decoration: none;		
	background: url(uploads/Freshmedia/dots.gif) repeat-x left top;
}
#sidebar ul.sidemenu li {
	list-style: none;
	background: url(uploads/Freshmedia/dots.gif) repeat-x left bottom;
	padding: 8px 10px;
	margin: 0;		
}
* html body #sidebar ul.sidemenu li {
	height: 1%;
}
#sidebar ul.sidemenu li a {
	text-decoration: none;	
	background-image: none;	
	background-color: transparent;
	border: none;
	color: #0C9BC2; 	
		
	font-weight: bold;		
	font-family: "Trebuchet MS", Tahoma, Helvetica, Arial, Sans-serif;
	font-size: 14px;	
	/* letter-spacing: .5px;  */
}
#sidebar ul.sidemenu li a span {
	color: #989898;	
	font-family: Georgia, "Times New Roman", Times, serif;
	font-style: italic;
	font-weight: normal;	
	font-size: .8em;
}
#sidebar ul.sidemenu li a:hover {	
	color: #555;	
}
#sidebar ul.sidemenu ul { margin: 0 0 0 5px; padding: 0; }
#sidebar ul.sidemenu ul li { background: none; }

/* footer */
#footer-wrap {
	position: relative;
	clear: both;
	padding: 1em 0 2.5em 0;
	margin-top: 30px;
	font: normal 1em 'Trebuchet MS', Tahoma, sans-serif;	
	background: #ECF8FE;
	color: #777;
	width: 900px;
	float: left;		
}
#footer-wrap h3 {
	font: normal 1.6em/1.6em 'Trebuchet MS', Tahoma, sans-serif;
	text-transform: none;
	letter-spacing: 0;
	margin-left: 0;	
	color: #666666;	
}
#footer-content {	
	margin: 0 auto;		
	width: 880px;
	text-align: left;	
}



#footer-content ul.col-list {
	background: url(uploads/Freshmedia/dots.gif) repeat-x left top;
	list-style: none;
	margin: 5px 0 0 5px; padding: 0;	
	width: 98%;
}
#footer-content ul.col-list li {
	background: url(uploads/Freshmedia/dots.gif) repeat-x left bottom;
}
#footer-content ul.col-list li a {
	display: block;
	line-height: 2em;
	font-weight: bold;
	padding: 4px 0 4px 8px;
	width: 98%;	
	color: #777;
	border: none;
}
#footer-content ul.col-list li a:hover {
	color: #333;
	text-decoration: none;
}
#footer-content ul.col-list li a span {
	color: #989898;
	font-style: italic;
	font-weight: normal;
	font-family: Georgia, "Times New Roman", Times, serif;
}
#footer-content .col {

	width: 280px;
	padding: 0 0 30px 0;			
	display: inline;
}

#footer-content .space-sep {
	margin-right: 12px;
}


#footer-content .col2 {
	width: 280px;
	padding: 0 0 30px 0;	
	display: inline;	
}

#footer-basefooter {	
	margin: 0 auto;		
	width: 870px;
	/*text-align: left;*/
	display: inline;		
}




/* postmeta */
.postmeta {	
	padding: 5px; margin: 20px 10px 15px 10px;	
	font-size: 1em;	
	color: #777;
	border: 1px solid #ECF8FE;
	background: #ECF8FE;
}
.postmeta .date{ margin: 0 10px 0 5px;	}
.postmeta a.comments { margin: 0 10px 0 5px;	}
.postmeta a.readmore { margin: 0 10px 0 5px;	}

.post-info { font-size: .95em; padding-top: 3px; margin-left: 5px; color: #bababa;	}
.post-info a { color: #C5935C; }

/* thumbnails */
p.thumbs{ padding: 12px 0 0 10px; }

.thumbs img { 
	position: relative;
	border: 1px solid #ebebeb;
	background: none;
	padding: 4px;
	margin: 5px;
	/* margin: 4px 7px 4px 4px; */	
}
.thumbs img:hover	{
	border: 1px solid #c5c5c5; 
	background: none;	
}
.thumbs a:hover { background-color: transparent; border: none }

/* alignment classes */
.float-left  { float: left; }
.float-right { float: right; }
.align-left  { text-align: left; }
.align-right { text-align: right; }

/* display and additional classes */
.clearer { clear: both; }

#breadcrumbs {	
	color: #989898;
        font: 10px;
	font-style: italic;
	font-weight: normal;
	font-family: Georgia, "Times New Roman", Times, serif;	
	text-align: left;
}



Re: My H2 content block doent line up in IE

Posted: Tue Aug 04, 2009 8:42 am
by Deak
It looks like it has more than CSS problems this morning. Drop a note when the site is back up and we can take a look. I can't tell from just the CSS you posted why there is an issue, I need to see where the H2 is placed in the DOM.

Also, what version of IE has this problem?

Re: My H2 content block doesnt line up in IE

Posted: Tue Aug 04, 2009 3:49 pm
by Mury
Hi folks Im sorry - the host is driving me insane.  They could not host cmsms on our usual server, so we had to install on a test server - now when we switch to go live and redirect - all hell  broke loose.  Its moved to the new server (by the host) but no stylesheet and I cant get to admin till tomorrow when they back at work.  I can ftp etc but nothing else.
I have installed cmsms on servers elsewhere no problems - why do swedish hosts have this hassle??
Anyway - little I can do, it seems that the redirects have disturbed something, I will try reloading the sytlesheets. But I cant get at admin.

Re the H2 problem - its in IE7,  I also note that TinyMCE also shows all content as centered - maybe that is a hint - maybe some layout issue I just cannot grasp - its fine in FFox. Hope its up tomorrow.  At present, only the old site is showing pending DNS redirect refresh etc.....Sorry.
Regards

Re: My H2 content block doent line up in IE

Posted: Wed Aug 05, 2009 6:56 am
by Mury
OK guys, the site is finally up, can some please suggest why the H2 doesnt line up.
Thanks

Re: My H2 content block doent line up in IE

Posted: Wed Aug 05, 2009 8:37 am
by Deak
My starting point before digging any deeper into the CSS would be to fix some errors in the markup. For example, you have unclosed tags:
<div id="nav"
Use the W3 validator to fix the errors, then proceed with the CSS:

http://validator.w3.org

Re: My H2 content block doent line up in IE

Posted: Wed Aug 05, 2009 10:46 am
by Mury
Thanks Deak, I have closed that Div, it did not change the IE layout.  I will also check markup as suggested.
Regards

Re: My H2 content block doent line up in IE

Posted: Wed Aug 05, 2009 12:16 pm
by Deak
Humour me and try dropping a clear in here:
  You are here: Meetings




       Meetings and Conferences with  Flair
I've run it through Litmus (still waiting on a few tests) and it looks like the problem is all IE version from 5.0 onwards.

Re: My H2 content block doent line up in IE

Posted: Wed Aug 05, 2009 1:31 pm
by Mury
Hi Deak, I grovel at your feet, that solved the issue. Thank you so much for your time and digging into the issue - hero status.
The H2 now lines up at the left margin.  I seem to have some additional space above the H2 (between the breadcrumbs & H2), but , I can live with that if there is no quick solution - however that would be the icing on the cake. Ultimately, I may do away with the contentblock div (that seems to be the culprit) but its an easy fix just now.
Regards

Re: My H2 content block doent line up in IE

Posted: Wed Aug 05, 2009 2:44 pm
by Deak
Glad that helped.

To fix the space, I make a class and pseudo class for my clears:
    .clear
    {
clear: both;
    }   
.clear:after
{
    content: ".";
    height: 0px;
    visibility: hidden;
    display: block;
    clear: both;
}
The pseudo class :after will clean up for you.

Re: My H2 content block doent line up in IE

Posted: Wed Aug 05, 2009 3:09 pm
by Mury
Hi Deak, thanks, I will add that into the stylesheet, great suggestion.
Ive just noticed that I have a large white space between the sidebar and content, do you think that this is a similar thing as I dont seem to be able to get the content over to the left. I know that the div is float:right but even if I adjust the div width, nothing seems to change.  Odd.
Thanks for all the help.

Re: My H2 content block doent line up in IE

Posted: Wed Aug 05, 2009 5:43 pm
by Coldman
Mury wrote: why do swedish hosts have this hassle??
Sry for OT:
It depends on what hosts you are using. I've never got any problem with Loopia or Oderland and I think their support are awesome.

Re: My H2 content block doent line up in IE

Posted: Wed Aug 05, 2009 6:04 pm
by Dr.CSS
You still have validation issues...

And do yourself a favor and use {* smarty comment *}, which won't show in rendered page, to comment out stuff not IE has a tendency to put space where these are...

Re: My H2 content block doent line up in IE

Posted: Thu Aug 06, 2009 7:13 am
by Mury
Hi DrCSS, thanks for that suggestion.  My error, I am not so familiar with Smarty - and yes I must read the doc's more diligently.
Its likely that that will solve my issue. Thanks & regards