Probleem layout FF/IE

Status
Niet open voor verdere reacties.

kristof82

Gebruiker
Lid geworden
18 mei 2009
Berichten
5
Hallo,

Ik ben een bestaande template aan het aanpassen maar ben hier niet zo ervaren in. Alles wat ik wou lukt wel behalve dat mijn tabel in Firefox is zoals het moet en in Explorer loopt hij onder het menu. In bijlage zie je wat ik bedoel. Ik heb al van alles geprobeerd maar ik geraak er niet aan uit. De CSS staat hieronder.

Ik hoop dat jullie mij kunnen helpen.

Alvast heel erg bedankt.



Code:
/*#############################################################



Name: Bitter Sweet



Date: 2006-10-02



Description: Lime flavoured template with two columns.



Author: Viktor Persson



URL: http://templates.arcsin.se







Feel free to use and modify but please provide credits.



#############################################################*/







/* standard elements */



* {



	margin: 0;



	padding: 0;



}



a {color: #C6AEA1;}



a:hover {color: #FFFFFF;}



body {



	background: #C6AEA1 url(img/bg.gif) repeat-y center top;



	color: #333;



	font: normal 62.5% "Lucida Sans Unicode",sans-serif;
	



}



input {



	color: #555;



	font: normal 1.1em "Lucida Sans Unicode",sans-serif;




}



p,cite,code,ul {



	font-size: 1.2em;



	padding-bottom: 1.2em;



}



ul {margin-left: 1.2em;}



//li {list-style-image: url(img/li.gif);}



h1 {font-size: 1.4em;}



blockquote {



	background: #FFF;



	border-bottom: 1px solid #EEE;



	border-top: 1px solid #EEE;



	color: #333;



	display: block;



	font-size: 0.9em;



	margin-bottom: 1.2em;



	padding: 6px 12px;



}



blockquote p {padding: 3px 0;}



h1,h2,h3 {color: #654;}







/* misc */



.clearer {clear: both;}







/* structure */



.container {



	background: url(img/bgcontainer.gif) repeat-y;



	margin: 0 auto;



	width: 702px;



}







/* top */



.top {



	background: #C6AEA1;



	font: normal 2.4em Verdana,sans-serif;



	height: 10px;



	margin: 0 auto;



	width: 630px;



}



.top a {



	color: #FFF;



	display: block;



	line-height: 60px;



	text-decoration: none;



	width: 100%;



}



.top span {padding-left: 24px;}



//.top a:hover {



	background: #C688B0;



	color: #FFF;



}







/* header */



.header {



	background: url(img/header.jpg) no-repeat;



	height: 180px;



	margin: 0 auto;



	width: 630px;



}







/* item */



.item {clear: both;}



.item .date {



	//background: url(img/bgdate.gif) no-repeat;



	color: #FDD;



	float: left;



	height: 40px;



	text-align: center;



	width: 36px;



}



.item .date div {padding-top: 4px;}



.item .date span {font: normal 1.6em serif;}



.item .content {



	float: left;



	width: 500px;



}



.item h1 {



	background: #C6AEA1;



	color: #FFF;



	line-height: 30px;



	padding-left: 16px;
    


}



.item .body {padding: 12px 18px;}


  

      



/* main */



.main {float: left;}








/* navigation */



.navigation {



	float: left;



	margin-left: 1px;



	width: 129px;



}



.navigation h1 {



	background: #C6AEA1;



	color: #FFF;



	font-size: 1.3em;



	line-height: 30px;



	padding-left: 12px;

	
	


}



.navigation ul {margin: 0; padding: 0;}



.navigation ul ul{margin: 0 0 0 20px; padding: 0;}



.navigation li {



	border-bottom: 1px solid #D5E8AD;



	list-style: none;



}



.navigation li a {



	background: #917569 url(img/bgnavigation.gif) repeat-x;	



	color: #FFF;



	display: Block;



	line-height: 10px;



	padding: 8px 4px 8px 12px;



	text-decoration: none;

	
	
	



}



.navigation li a:hover {



	background: #C6AEA1;



	color: #553;



}







/* footer */



.footer {



	background: url(img/bgfooter.gif) repeat-x;



	color: #FFF;



	font-size: 1.1em;



	line-height: 40px;



	margin: 0 auto;



	text-align: center;



	width: 626px;



}



.footer a {color: #FFF;}



.footer a:hover {color: #FAFCB0;}
 

Bijlagen

  • FF.jpg
    FF.jpg
    28,9 KB · Weergaven: 47
  • IE.jpg
    IE.jpg
    34,4 KB · Weergaven: 41
Ik weet niet nu welke css classes toegewezen zijn aan welke blokker op je html pagina. misschien heb je ook een link? Maar ik denk dat het te maken heeft met een bepaalde width die je meegeeft aan een div.
 
Hallo Leon,

Ik dacht het ook dat het met width van een tabel te maken had, maar ik vind het niet.
De link is www.originailz.be

Hieronder ook nog de css van de eigenlijke inhoud:

Code:
.mod_download_gallery_line_f, .mod_download_gallery_line_rightalign_f {

	border-bottom: 1px solid #DDD;

	font-size: 1.2em;

	padding: 12px 12px 0px 0px;
	
}



.mod_download_gallery_line_rightalign_f {

	text-align: right;

	white-space: nowrap;
	
	

}



.mod_download_gallery_line_f {

	text-align: left;

}



.mod_download_gallery_th_f {

	background-color: #ff9;

	padding: 3px;

	margin: 3px;
	

}



.mod_download_gallery_line_text_f {

	padding: 0px 0px 0px 0px;

}



.mod_download_gallery_dgheader_f {

	font-size: 12px;

	font-weight: bold;

	background-color: #cf9;

	padding: 4px;
width: 500px;
}



/* Buttons >>>>> */

button.mod_download_gallery_btn_f,

button.mod_download_gallery_btn_ra_f {

	border: 1px solid #ca4;

	background: none;

	font-weight: bold;

	cursor: pointer;

	padding: 0 16px 0 0;  

        margin: 0 2px 0 2px;

}



button.mod_download_gallery_btn_f {

	width: auto;

	overflow: visible;

	text-align: left;

}



button.mod_download_gallery_btn_ra_f {

	text-align: right;

}



button.mod_download_gallery_asc_f {

	background: url(images/up_16.png) right center no-repeat;

}



button.mod_download_gallery_desc_f {

	background: url(images/down_16.png) right center no-repeat;

}

/* <<<<<<< Buttons */



/* user Upload starts here */

div.download_gallery.upload td.field_title {

	font-family: "Verdana";

	font-size: 1.2em;

}



div.download_gallery.upload td {

	vertical-align: top;

}



div.download_gallery.upload input.field,

div.download_gallery.upload select {

	width: 300px;

}



div.download_gallery.upload textarea {

	width: 300px;

	height: 60px;

}



div.download_gallery.upload input, 

div.download_gallery.upload img {

	width: 150px;

	vertical-align: middle;

}





/* user Upload ends here */
 
Welke IE en welke resolutie gebruik je? Want bij mijn IE werkt het gewoon goed. Ik heb het bij IE 6 7 en 8 geprobeerd.
 
T is nu redelijk opgelost.
Ten eerste heb ik de <div class="body"> + bijbehorende </div> eruit gehaald. Deze had geen nut. want er was geen style voor.

Verder heb ik in de CSS in de html file aantal dingetjes aangepast. moet je maar ff kijken wat er veranderd is. Het gaat vooral om de classnamen die zijn toegewezen aan de TD's

k weet niet precies meer welke ik veanderd heb sorry. Ik heb m toegevoegd.
Nu is er alleen nog een probleempje met de knoppen bovenin. Deze staan niet netjes in ie7 nu nog. Daar zal ik later nog wel even naar kunnen kijken. K ga nu aan het werk.

succes!
 

Bijlagen

  • test.rar
    1,9 KB · Weergaven: 16
Het is gelukt :cool:

Ik ben u nu al heeeel dankbaar!!!! ik snap het nog niet volledig maar dat komt wel.

Heb nu wel nog hetzelfde probleem bij die webshop, als ge doorklikt naar "aan winkelwagen toevoegen" ik ben al aant het proberen geweest maar kom er niet uit... moest ge daarvoor ook nog eventjes tijd hebben :confused:

Alvast heel erg bedankt voor de tijd die je er in steekt

kristof
 
Dit is de CSS ervan

Code:
/*

  CSS definition for Website Baker module: Bakery

  Copyright (C) 2009, Christoph Marti



  This CSS file is free software. You can redistribute it and/or modify it 

  under the terms of the GNU General Public License - version 2 or later, 

  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.



  This CSS file is distributed in the hope that it will be useful, 

  but WITHOUT ANY WARRANTY; without even the implied warranty of 

  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

  GNU General Public License for more details.

*/





/* Frontend Stylesheet Module Bakery */

/* ********************************* */



/*

NOTE:

Modify the HTML of the main page and the item page in the layout section of the Bakery page settings.

Modify the HTML of the invoice template in the layout section of the Bakery general settings.

Modify the CSS of the main page and the item page in this stylesheet.

Modify the CSS of the invoice template and the view order in the backend stylesheet.

*/





/* GENERAL */



.mod_bakery_h_f {

	text-align: left;

}

.mod_bakery_ordernum_f {

	font-weight: bold;

}

.mod_bakery_hr_f {

	

}





/* MAIN PAGE */



.mod_bakery_main_div_cart_bt_f {

	text-align: left;

}

.mod_bakery_main_td_f {

	text-align: center;

}

.mod_bakery_main_thumb_f {

	border: none;

}

.mod_bakery_main_img_f {

	border: none;

}

.mod_bakery_main_title_f {

	font-weight: bold;

}

.mod_bakery_main_in_stock_f {

	color: green;

}

.mod_bakery_main_short_of_stock_f {

	color: orange;

}

.mod_bakery_main_out_of_stock_f {

	color: red;

}

.mod_bakery_main_stock_img_f {

	border: red 1px; 

}

.mod_bakery_main_input_f {

	text-align: right;

}

.mod_bakery_main_select_f {

	width: 100px;

}





/* ITEM PAGE */



.mod_bakery_item_thumb_f {

	border: none;

}

.mod_bakery_item_img_f {

	border: none;

}

.mod_bakery_item_table_f {

	width: 75%;

	text-align: left;

}

.mod_bakery_item_title_f {

	font-weight: bold;

}

.mod_bakery_item_sku_f {

	font-weight: bold;

}

.mod_bakery_item_stock_f {

	font-weight: bold;

}

.mod_bakery_item_in_stock_f {

	color: green;

}

.mod_bakery_item_short_of_stock_f {

	color: orange;

}

.mod_bakery_item_out_of_stock_f {

	color: red;

}

.mod_bakery_item_stock_img_f {

	border: red 1px; 

}

.mod_bakery_item_price_f {

	font-weight: bold;

}

.mod_bakery_item_shipping_f {

	font-weight: bold;

}

.mod_bakery_item_full_desc_f {

	font-weight: bold;

}

.mod_bakery_shipping_cost_f {

	font-weight: bold;

}

.mod_bakery_item_option_f {

	font-weight: bold;

}

.mod_bakery_item_input_f {

	text-align: right;

}

.mod_bakery_item_select_f {

	

}





/* CART */



/* CART table header */

.mod_bakery_cart_th_sku_f {

	text-align: right;

}

.mod_bakery_cart_th_name_f {

	text-align: center;

	width: 50%;

}

.mod_bakery_cart_th_quantity_f {

	text-align: right;

}

.mod_bakery_cart_th_price_f {

	text-align: right;

}

.mod_bakery_cart_th_shipping_f {

	text-align: right;

}

.mod_bakery_cart_th_sum_f {

	text-align: right;

}



/* CART table body */

.mod_bakery_cart_td_sku_f {

	text-align: right;

	width: 10%;

}

.mod_bakery_cart_td_name_f {

	text-align: center;

}

.mod_bakery_cart_td_quantity_f {

	text-align: right;

	white-space: nowrap;

	width: 12%;

}

.mod_bakery_cart_td_quantity_f a img {

	margin-bottom: -3px; 

	border: none;

}

.mod_bakery_cart_td_price_f {

	text-align: right;

	width: 12%;

}

.mod_bakery_cart_td_shipping_f {

	text-align: right;

	width: 12%;

}

.mod_bakery_cart_td_sum_f {

	text-align: right;

	width: 20%;

}



/* CART table details */

.mod_bakery_cart_currency_f {

	font-size: 9px;

	font-weight: normal;

}

.mod_bakery_cart_item_f {

	font-weight: bold;

}

.mod_bakery_cart_subtotal_f {

	text-align: right;

	font-weight: bold;

	line-height: 200%;

}

.mod_bakery_cart_shipping_f {

	text-align: right;

	font-weight: bold;

	line-height: 75%;

}

.mod_bakery_cart_free_shipping_f {

	text-align: right;

	font-weight: bold;

	line-height: 75%;

	color: #FF0000;

}

.mod_bakery_cart_tax_f {

	text-align: right;

	font-weight: bold;

	line-height: 75%;

}

.mod_bakery_cart_total_f {

	text-align: right;

	font-weight: bold;

	line-height: 300%;

}





/* MINI CART */



#mod_bakery_mc_div_f {

	width: 250px;

	float: right;

	font-size: 11px;

}

.mod_bakery_mc_h2_cart_f {

	

}

.mod_bakery_mc_p_empty_f {

	font-weight: bold;

}

.mod_bakery_mc_orderid_f {

	font-style: italic;

}

.mod_bakery_mc_p_summary_f {

	

}

.mod_bakery_mc_quantity_f {

	font-weight: bold;

}

.mod_bakery_mc_total_f {

	font-weight: bold;

}

.mod_bakery_mc_p_excl_f {

	font-size: 10px;

}





/* ADDRESS FORM & ADDRESS */



.mod_bakery_form_p_f {

	font-style: italic;

}

.mod_bakery_form_label_f {

	width: 25%;

	text-align: right;

	font-weight: bold;

	white-space: nowrap;

}

.mod_bakery_form_input_f {

	width: 280px;

}



.mod_bakery_address_h_f {

	font-weight: bold;

}

.mod_bakery_address_p_f {

	

}





/* BUTTONS */



.mod_bakery_bt_cart_f {

	border: 1px solid #ca4;

	background: none;

	font-weight: bold;

	cursor: pointer;

	padding: 0 16px 0 0;  

        margin: 0 2px 0 2px;



	

}

.mod_bakery_bt_add_f {

	

}

.mod_bakery_bt_continue_f {

	

}

.mod_bakery_bt_update_f {



	border: 1px solid #ca4;

	background: none;

	font-weight: bold;

	cursor: pointer;

	padding: 0 16px 0 0;  

        margin: 0 2px 0 2px;



	

}

.mod_bakery_bt_add_ship_form_f {

	

}

.mod_bakery_bt_order_f {



	border: 1px solid #ca4;

	background: none;

	font-weight: bold;

	cursor: pointer;

	padding: 0 16px 0 0;  

        margin: 0 2px 0 2px;



	

}

.mod_bakery_bt_quit_f {

	

}

.mod_bakery_bt_modify_address_f {

	

}

.mod_bakery_bt_pay_advance_f {

	width: 98%;

}

.mod_bakery_bt_pay_invoice_f {

	width: 98%;

}

.mod_bakery_bt_pay_paypal_f {

	width: 98%;

}

.mod_bakery_bt_pay_mollie_f {

	width: 70%;

}

.mod_bakery_bt_pay_payment-network_f {

	width: 98%;

}





/* PAY */



.mod_bakery_pay_method_f {

	

}

.mod_bakery_pay_h_f {

	padding-left: 12px;

}

.mod_bakery_pay_td_f {

	font-size: 11px;

	padding: 3px 12px;

}

.mod_bakery_pay_submit_f {

	height: 30px;

	text-align: center;

}





/* MESSAGES */



.mod_bakery_error_f {

	text-align: center;

	color: red;

	margin-top: 5px;

	border: solid 1px red;

	background-color: #FFDCD9;

	background-image: url(images/error.gif);

	background-position: 15px center;

	background-repeat: no-repeat;

}

.mod_bakery_error_f p {

	padding-left: 60px;

	padding-right: 6px;

}

.mod_bakery_errorbg_f {

	background-color: #FFDCD9;

}

.mod_bakery_success_f {

	text-align: left;

	color: green;

	margin-top: 5px;

	border: solid 1px green;

	background-color: #D4FFD1;

	background-image: url(images/success.gif);

	background-position: 15px center;

	background-repeat: no-repeat;

}

.mod_bakery_success_f p {

	padding-left: 60px;

	padding-right: 6px;

}

.mod_bakery_information_f {

	text-align: center;

	margin-top: 5px;

	border: solid 1px #FFD700;

	background-color: #FFFFDD;

	background-image: url(images/information.gif);

	background-position: 15px center;

	background-repeat: no-repeat;

}

.mod_bakery_information_f p {

	padding-left: 60px;

	padding-right: 6px;

}





/* IE ONLY */



/* IE < 7 */

* html input.mod_bakery_bt_continue_f, * html input.mod_bakery_bt_update_f, * html input.mod_bakery_bt_order_f, * html input.mod_bakery_bt_quit_f {

	font-size: 9px;

}

/* IE = 7 */

*:first-child+html .mod_bakery_bt_continue_f, *:first-child+html .mod_bakery_bt_update_f, *:first-child+html .mod_bakery_bt_order_f, *:first-child+html .mod_bakery_bt_quit_f {

	font-size: 9px;

}





/* LIGHTBOX2 */



#lightbox { position: absolute;	left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0; }

#lightbox img { width: auto; height: auto; }

#lightbox a img { border: none; }



#outerImageContainer { position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }

#imageContainer { padding: 10px; }



#loading { position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }

#hoverNav { position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }

#imageContainer>#hoverNav { left: 0; }

#hoverNav a { outline: none; }



#prevLink, #nextLink { width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }

#prevLink { left: 0; float: left;}

#nextLink { right: 0; float: right; }

#prevLink:hover, #prevLink:visited:hover { background: url(lightbox2/images/prevlabel.gif) left 15% no-repeat; }

#nextLink:hover, #nextLink:visited:hover { background: url(lightbox2/images/nextlabel.gif) right 15% no-repeat; }



#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100%	; }



#imageData {	padding:0 10px; color: #666; }

#imageData #imageDetails { width: 70%; float: left; text-align: left; }	

#imageData #caption { font-weight: bold;	}

#imageData #numberDisplay { display: block; clear: left; padding-bottom: 1.0em; }			

#imageData #bottomNavClose { width: 66px; float: right;  padding-bottom: 0.7em; outline: none; }	 	



#overlay { position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }
 
T heeft voornamelijk te maken met de paddings en margins. Padding geeft een aantal pixels ruimte aan de binnenkant van een block element aan. padding-left: 20px geeft aan dat de inhoud 20px na rechts moet verschuiven.
margin geeft dit aan voor de buitenkant van een element.
margin: 20px 3px 2px 4px; staat voor:
margin: boven rechts onder links. (hetzelfde geldt voor padding)

Hierdoor wordt alles te breed in IE7 ligt meer aan IE 7 dan aan de css. Anyway als je mijn vorige vergelijkt met de jij had en dan mijn wijzigingen ook toepast op deze pagina zou je een heel eind moeten komen.
Als het echter niet lukt, laat maar weten.
 
overigens kun je beter zelf een css template maken vanaf scratch. Hiermee leer je veel meer ten eerste. En tweede kun je dingen die je niet nodig hebt er gelijk uit laten. en ten derder hiermee leer je veel meer! :)
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan