CSS - Css Layout Issue - Tearing My Hair Out!
Hi everyone. Have been tearing my hair out for the past 4 days trying to get single products to display correctly on my wordpress blog.
Where my problem lies is aligning a "in Stock" button to the right of the product display. You can see what the current product display looks like here http://transpart.clearviewdigital.ie/?page_id=359 Below the first product you can see what it needs to look like. Any advice or help would be massively appreciated. The following is the css code I am using from the wp-ecommerce plugin: Code: /* Theme Name: Default Theme Theme URI: <a href="http://instinct.co.nz" rel="nofollow">http://instinct.co.nz</a> Description: Default Theme Version: 3.5 Author: Thomas Howard Author URI: <a href="http://instinct.co.nz" rel="nofollow">http://instinct.co.nz</a> */ /* * If you delete this file, you can expect your WP e-Commerce installation to break in some manner * to create your own theme copy, and paste this file, change the names and alter to your tastes */ .wpsc_container{ position: relative; _zoom: 1; } div.productdisplay img { max-width: none !important; padding: 0px; border: none; } #change_country{ float:left; } /* * shopping cart styling * lots of styling for lots of different ways of displaying it. */ div#shoppingcart{ float: right; width: 148px; margin: 0px; padding: 0px; margin-left: 5px; } div#shoppingcart div#shoppingcartcontents{ font-size: 9pt; border: 1px solid #999999; background-color: #efefef; height: 100%; width: 100%; text-align: left; padding: 0px 6px 0px 0px; position: relative; z-index: 9; } div#shoppingcart div#shoppingcartcontents strong{ display: block; width: 100%; } div#shoppingcart div strong{ font-size: 11pt; } div#sideshoppingcart div{ height: 100%; width: 90%; text-align: left; padding: 6px; padding-top: 4px; } div#sideshoppingcart div h2{ margin-left: -1ex; display: inline; } input.wpsc_buy_button{ float: left; } a.wpsc_product_title{ display: block; float: left; } a.wpsc_edit_product{ display: block; float: left; font-size: .8em; margin: 0px 0px 0px 2px; } div.wpsc_listen_button{ clear: both; } div.wpsc_description{ clear: both; } table.shoppingcart{ margin-left: -2px; margin-bottom: 5px; } table.shoppingcart tr td{ font-size: 8pt !important; } div#widgetshoppingcart{ } div#widgetshoppingcart div{ height: 100%; width: 100%; text-align: left; } div#widgetshoppingcart div strong.cart_title{ margin-left: -6px; display: inline; font-size: 1.2em; } div#widgetshoppingcart div h2{ text-align: left; margin-bottom: 4px; display: block; } a#fancy_collapser_link{ width: 13px; height: 13px; padding: 0px; margin-left: 5px; margin-bottom: -3px; border: none; } a#fancy_collapser_link img{ border: none; } div#shoppingcartcontents{ display: block; } div#sliding_cart{ margin: 0px; padding: 0px; background: none; border: none; } span.oldprice{ text-decoration: line-through; } span.oldprice span{ text-decoration: line-through; } span.special{ color: #DD0000; font-weight:bold; } strong.prodtitles{ display: block; margin-bottom: -15px; } h2.prodtitles{ font-size:1em; margin: 0px; clear:both; padding-top:0; } h2.prodtitles span{ display: block; float: left; line-height:125%; } span.items{ display:block; margin:0 0 15px 0; } span.nomore{ display:block; margin:0 0 15px 0; } span.numberitems{ margin:0 5px 0 0; } span.subtotal,span.total,span.discount,span.postage,span.tax,span.gocheckout{ display:block; } span.totalhead,span.discounthead,span.subtotalhead,span.postagehead,span.taxhead{ font-weight:bold; margin-right:5px; } span.emptycart{ display:block; margin:10px 0 0 0; } p.empty,p.visitshop{ margin:0; padding:0; } /* * end shopping cart styling */ /* * product default display styling */ div.productdisplay{ position:relative; float:left; clear:both; top:0px; left: 0px; margin-bottom: 5px; padding: 0px; width: 100%; text-align: left !important; border: 1px solid #cccccc; } div.imagecol{ position:relative; float:left; top:0px; left: 0px; padding-right: 10px; margin-right: 10px; border: 0px solid #fff; /* border: 1px solid blue; */ } div.productdisplay div.imagecol img{ border: 0px solid #fff; } div.textcol{ position:relative; float:left; top:0px; left: 0px; padding: 0px; padding-bottom: 10px; margin: 0px; /* Adjust this width according to your layout*/ /* width: 77%; */ text-align: left !important; /* border: 1px solid green; */ _display: inline; } div.textcol form{ text-align: left !important; } div.single_product_display div.textcol{ /* Adjust this width according to your layout*/ /* width:41%; */ margin-right: 0; } .item_no_image { border: 2px solid #aaaaaa; background: #cccccc; display: block; } .item_no_image a, .item_no_image .link_substitute { display: table-cell; width: inherit; height: inherit; color: #666666; text-align: center; vertical-align: middle; } .item_no_image a span, .item_no_image .link_substitute span { display: block; } div.producttext{ font-size: 11pt; width: 100%; text-align: left !important; } p.description{ float: right; margin: 0px 0px 6px 0px; } p.wpsc_description{ float: right; margin: 0px 0px 6px 0px; } p.wpsc_variation_forms{ margin: 0px 0px 0px 0px; } p.wpsc_variation_forms label{ } p.wpsc_product_price{ display: none; } span.wpscsmall{ font-size:0.8em; } p.wpsc_product_extra_content{ float: right; margin: 0px 0px 0px 0px; } div.wpsc_product_price{ width:130px; } span.pricefloatright{ } div.wpsc_product_price label{ display: inline; } div.wpsc_product_price input{ /* float: left; */ } div.wpsc_product_price br{ clear: both; } p.galleryheading{ font-weight:bold; } /* styles the additional description */ div.additional_description{ align: right; } a.additional_description_link{ display: inline; } a.additional_description_link img{ margin-right: 3px; } label.wpsc_quantity_update { display: inline; } /* * product rating styling */ div.product_footer{ position: relative; clear: both; padding: 0px !important; width: 100%; border-top: 1px dashed #cccccc; height: 35px; margin-top: 1em; } div.product_footer strong{ display: block; font-size: 7pt; font-weight: normal; } div.product_average_vote{ position: absolute; top: 0px; left: 0px; width: 50%; float: left; margin: 0px !important; height: inherit; } div.product_user_vote{ position: absolute; top: 0px; right: 0px; width: 30%; margin: 0px !important; height: inherit; } span.vote_total{ position: relative; top: -3px; left: 2px; font-size: 7pt; } span.rating_saved{ color: #990000; display: none; } /* *end product rating styling */ /* * end default product display styling */ /* * list product display styling */ table.list_productdisplay{ /* margin-top: 10px; */ margin-bottom: 20px; border-collapse: collapse; width: 100%; } table.list_productdisplay tr td{ vertical-align: top; padding-bottom: 0px; font-size: 8pt; /* border: 1px solid black; */ } table.list_productdisplay tr td a.wpsc_product_title{ text-align: left; border-bottom: none; text-decoration: underline } table.list_productdisplay tr td div.wpsc_variation_forms p{ padding: 0px; text-align: left; } table.list_productdisplay tr td select{ margin-right: 3px; } table.list_productdisplay tr.list_view_description{ margin: 0px; padding: 0px; } table.list_productdisplay tr.list_view_description td{ margin: 0px; padding: 0px 3px 5px 3px; } table.list_productdisplay tr.list_view_description td div{ display: none; padding: 3px; } div.wpsc_loading_animation { margin-top: 3px; margin-left: 6px; float: left; } .list_productdisplay .wpsc_loading_animation { display: none; } /* * end list product display styling */ /* * loading indicator styling */ #loadingindicator{ visibility: hidden; font-size: 7pt; font-weight: normal; } #loadingindicator img{ position: relative; top: 3px; margin-left: 6px; /* visibility: hidden; */ border: none !important; } #alt_loadingindicator{ visibility: hidden; font-size: 7pt; font-weight: normal; } #alt_loadingindicator img{ position: relative; top: 3px; margin-left: 6px; /* visibility: hidden; */ border: none !important; } /* * end loading indicator styling */ div.select_country{ margin-bottom: 5px; } div.select_country input, div.select_country select{ vertical-align: top; _height: 20px; margin: 0px; } div.select_country form{ text-align: left; } form.wpsc_checkout_forms { text-align: left; } form.wpsc_checkout_forms .login_error { color:red; } td.shipping_error { color:red; } fieldset.wpsc_registration_form { border: none; text-align: left; margin: 0px; padding-left: 3px; } fieldset.wpsc_registration_form label { display: block; clear: left; float: left; width: 94px; } fieldset.wpsc_registration_form input { float: left; margin: 0px 0px 4px 0px; } table.wpsc_checkout_table input.text, table.wpsc_checkout_table textarea, table.wpsc_checkout_table select, fieldset.wpsc_registration_form input { margin-right:0; width:260px; font-family:"Verdana","Lucida Fax","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; font-size: 10pt; } table.wpsc_checkout_table select { width:271px !important; } tr.product_shipping td h2{ margin-bottom: 15px; margin-top: 5px; } div#homepage_products{ width:100%; } /* frontpage_product and category view styling */ div.frontpage_product{ width:auto; float: left; height: 260px; text-align: center; } div.frontpage_product a p{ margin-top: 0px; } div.frontpage_product a{ color: #333333 !important; font-weight: normal !important; } div.frontpage_product a img{ border: none; } div.frontpage_product img{ text-align: center; } div.frontpage_product span.front_page_price{ display: block; } /* Verify your Order styling */ table.productcart{ width: 100%; margin-top: 10px; margin-bottom: 10px; padding: 0px; border-collapse: collapse; padding-top: 3px; border: none; font-size: inherit; } table.productcart tr td{ padding-bottom: 5px; font-size: 11px; font-size: inherit; } table.productcart tr.product_row td{ padding-bottom: 5px; font-size: inherit; vertical-align: middle !important; } table.productcart tr.product_row td{ padding-bottom: 5px; font-size: inherit; vertical-align: middle !important; } form.adjustform{ display: inline; } table.productcart tr.firstrow td{ font-weight:bold; background-color: #e5e5e5; border-left: 2px solid white; } table.productcart tr.firstrow td.firstcol{ border-left: none; } table.productcart tr.product_shipping td{ vertical-align: middle; /* border-top: 1px solid #E1DAB7 !important; */ padding-top: 4px; } button.remove_button { margin: 0px !important; } #coupon_num{ width: 134px !important; } table.productcart tr.total_price td{ border-top: 1px solid #999999 !important; border-bottom: 1px solid #999999 !important; font-weight: bold; padding-top: 4px; } ul.checkout_links{ list-style-type: none; padding-left: 0px; } ul.checkout_links li{ list-style-type: none; margin-left: 0px; } ul.checkout_links li a{ color: #555555 !important; font-weight: normal !important; } ul.checkout_links li a:hover{ color: #000000 !important; } a.termsandconds { text-decoration: underline; } .validation-error input, .validation-error textarea { border: 1px solid red; } p.validation-error { color: red; margin-bottom: 0px; } /* end Verify your Order styling */ /* * category display styling */ /* override some styling in the default wordpress theme */ .wpsc_container .PeSwitcher ul li:before, .wpsc_container .PeCatsBrands ul li:before{ content: ""; } .wpsc_container .PeSwitcher ul li, .wpsc_container .PeCatsBrands ul li{ padding-left: 0px !important; margin-left: 0px; } .PeSwitcher ul{ padding-left: 0px; } .PeSwitcher ul li{ margin-left: 0px; } .category_brand_header{ list-style: none !important; } .category_brand_header li{ margin-left: 0px; } .category_brand_header li:before{ content: none !important; } #content .category_brand_header li a{ color: #333333; font-weight: bold; font-size: 11pt; } .PeCatsBrands ul{ padding-left: 0px; } .PeCatsBrands ul li{ margin: 0px 0px 0px 0px !important; } .PeCatsBrands ul.SubCategories{ /* margin: 0px; */ } .PeCatsBrands ul.SubCategories li{ margin-left: 1em; } ul.PeCategories{ margin: 0px; } .category_image{ float: left; } .widget h3.category{ margin-top: 0px; display: inline; } .category a{ color:#0066CC; } li.MainCategory strong.category{ margin-top: 5px; font-size: 8pt; } li.MainCategory strong.category a.productlink{ color:#0066CC; font-size: 8pt; } li.MainCategory strong.category a.productlink:visited{ color:#0066CC; } li.MainCategory strong.category a.productlink:hover{ color:#114477; } div.wpsc_container div.PeSwitcher ul{ list-style: none !important; list-style-type: none !important; } div.wpsc_container div.PeCatsBrands ul li{ list-style: none !important; list-style-type: none !important; } div.wpsc_container div.PeSwitcher ul{ list-style: none !important; list-style-type: none !important; } div.wpsc_container div.PeCatsBrands ul li{ list-style: none !important; list-style-type: none !important; } img.catimage{ float:left; position: relative; top: -3px; margin-right: 2pt; } strong.cattitles{ display: block; z-index:1; /* margin-bottom: -15px; */ } /* * end category display styling */ div.wpcart_gallery img { margin-right: 5px; margin-bottom: 5px; } /* * Fancy notification styling */ #fancy_notification{ position: absolute; top: 0px; left: 0px; background: #ffffff; border: 4px solid #cccccc; display: none; height: auto; z-index: 9; } #fancy_notification #loading_animation{ display: none; } #fancy_notification #fancy_notification_content{ display: none; width: 300px; padding: 8px; height: auto; text-align: left; margin: 0px !important; } #fancy_notification #fancy_notification_content span{ margin: 0px 0px 6px 0px; display: block; font-weight: normal; } #fancy_notification #fancy_notification_content a{ display: block; float: left; margin-right: 6px; margin-bottom: 3px; } /* * end Fancy notification styling */ table.logdisplay{ width: 100%; } table.logdisplay tr.toprow td{ text-align: center; font-weight:bold; } table.logdisplay tr.toprow2 td{ text-align: left; font-weight:bold; } table.logdisplay tr td{ padding-left: 5px; padding-top: 2px; padding-bottom: 2px;} table.logdisplay tr.alt{ background-color: #eeeeee; } table.logdisplay tr.alt td{ background-color: #eeeeee; } td.processed{ text-align: left; min-width: 140px; width: 140px; white-space: nowrap; } td.processed a{ border-bottom: none; } td.processed a img{ margin-left: 5px; } div#form_field_form_container{ padding: 0px; margin: 0px; } div#form_field_form_container div, div#form_field_form_container div table{ padding: 0px; margin: 0px; width: 100%; border-collapse: collapse; } div#form_field_form_container div table tr td{ padding: 0px; margin: 0px; } table.logdisplay td.details { padding: 0px; } div.order_status { border-bottom: 1px solid #eeeeee; display: none; width: 100%; text-align: left; padding:13px 8px 1px 9px; } div.order_status table { width: 97%; } div.order_status table.logdisplay{ margin: 4px 0px 4px 0px; } div.order_status table.customer_details { margin: 4px 0px 4px 0px; } div.order_status table.customer_details tr td { text-align: left; } div.order_status div{ width: 100%; padding:0px 0px 1ex 0px; display: block !important;} div.order_status ul{ list-style-type: none; margin: 1ex 0px 0px 0px; padding: 0px; } div.order_status ul li{ padding-left: 0px; } div.order_status ul li input{ margin: 0px 2px -2px 0px; } img.log_expander_icon { margin-right: 3px; } div.wpsc_page_numbers{ margin-bottom: 5px; } /* * checkout registration styling */ table.wpsc_checkout_table tr td{ text-align: left; } div#checkout_login_box{ display: none; /* border: 1px solid #339933; background-color: #e8fcea;*/ width: auto; padding: 5px 5px 5px 15px; margin: 20px 0px 0px 0px; clear: both; } div#checkout_login_box a{ clear: both; } div#checkout_login_box input.checkout_submit{ clear: both; } div#checkout_login_box form{ text-align: left; } #TB_window img#register_loading_img{ display: inline; border: none; margin: 0px 0px -10px 5px; padding: 0px; display: none; } /* * end checkout registration styling */ /* * single category view styling */ div.category_view_product{ width: 280px; float: left; text-align: left; margin: 0px 0px 10px 0px } div.category_view_product a img.product_image{ float: left; margin-right: 6px; } div.category_view_product div.product_details{ display: block; float: left; } div.category_view_product div.product_details form{ text-align: left; } /* * also bought product styling */ div.single_product_display div.producttext h2.wpsc_also_bought{ margin-top:12px; display: block; } div.wpsc_also_bought{ width: 100%; position: relative; margin: 0px 0px 0px 0px; } div.wpsc_also_bought_item{ float: left; margin: 0px 5px 0px 0px; } div.wpsc_also_bought_item a.preview_link{ display: block; margin-bottom: 3px; margin-left: 2px; height: 96px; width: 96px; } div.wpsc_also_bought_item img.product_image{ display: block; } div.wpsc_also_bought_item a.wpsc_product_name{ } div.wpsc_also_bought_item span.pricedisplay{ float: none; display: block; } /* * Stuff with multiple or miscellaneous uses */ strong.title{ font-size: 12.5pt; } a.categorylink{ font-size: 8pt; } span.pricedisplay{ /* white-space: nowrap; */ width: 80px; float:right; } td.totals{ vertical-align: bottom; } form#specials{ display: inline; } /* Modified By allen */ .autocompleter{ color: #000000; border: 1px solid #BBBBBB; width: 255px; background-color: #DDDDDD; } .autocompleter ul li{ cursor:pointer; padding: 2px 5px; font-family:Verdana, Arial, Helvetica, sans-serif; white-space: nowrap; } .selectAutocompleter{ cursor:pointer; background-color: #999999; color:#ffffff; } div#product_search{ position:relative; left:-100px; } table.products{ text-decoration:none; text-align:left; width:240px; table-layout:fixed; } td.product_img{ width:35px; } div.wpsc_product_search input.wpsc_product_search{ float: right; height: 19px; width: 110px; _width: 144px; font-size: 11px; margin: 2px 10px 0px 0px; padding: 2px 14px 0px 20px; background: url(../iShop/images/iShop_search.png) no-repeat; border: none; } div.wpsc_product_search .submit{ display: none; } div.wpsc_product_search{ background-color: #eff2f3; display: block; height: 22px; _height: 30px; padding: 4px; margin: 20px 0px 12px 0px; } table.productdisplay tr td { position: relative; } div.breadcrumb { margin: 0px 0px 10px 0px; } table.logdisplay { } select#current_country { margin-right:10px; width: 190px; } input#zipcode { margin: 0px; } /* End of modified By allen */ /* Verify your Order styling */ td.shipping_header { background-color:#E5E5E5; text-transform: uppercase; font-weight:bold; } /* Main Flora Style Sheet for jQuery UI ui-datepicker */ #ui-datepicker-div, .ui-datepicker-inline { font-family: Arial,Helvetica,sans-serif; font-size: 14px; padding: 0; margin: 0; background: #E0F4D7; width: 185px; } #ui-datepicker-div { display: none; border: 1px solid #FF9900; z-index: 10; } .ui-datepicker-inline { float: left; display: block; border: 0; } .ui-datepicker-rtl { direction: rtl; } .ui-datepicker-dialog { padding: 5px !important; border: 4px ridge #83C948 !important; } button.ui-datepicker-trigger { width: 25px; } img.ui-datepicker-trigger { margin: 2px; vertical-align: middle; } .ui-datepicker-prompt { float: left; padding: 2px; background: #E0F4D7; color: #000; } *html .ui-datepicker-prompt { width: 185px; } .ui-datepicker-control, .ui-datepicker-links, .ui-datepicker-header, .ui-datepicker { clear: both; float: left; width: 100%; color: #FFF; } .ui-datepicker-control { background: #FF9900; padding: 2px 0px; } .ui-datepicker-links { background: #E0F4D7; padding: 2px 0px; } .ui-datepicker-control, .ui-datepicker-links { font-weight: bold; font-size: 80%; letter-spacing: 1px; } .ui-datepicker-links label { padding: 2px 5px; color: #888; } .ui-datepicker-clear, .ui-datepicker-prev { float: left; width: 34%; } .ui-datepicker-rtl .ui-datepicker-clear, .ui-datepicker-rtl .ui-datepicker-prev { float: right; text-align: right; } .ui-datepicker-current { float: left; width: 30%; text-align: center; } .ui-datepicker-close, .ui-datepicker-next { float: right; width: 34%; text-align: right; } .ui-datepicker-rtl .ui-datepicker-close, .ui-datepicker-rtl .ui-datepicker-next { float: left; text-align: left; } .ui-datepicker-header { padding: 1px 0 3px; background: #83C948; text-align: center; font-weight: bold; height: 1.3em; } .ui-datepicker-header select { background: #83C948; color: #000; border: 0px; font-weight: bold; } .ui-datepicker { background: #CCC; text-align: center; font-size: 100%; } .ui-datepicker a { display: block; width: 100%; } .ui-datepicker-title-row { background: #B1DB87; color: #000; } .ui-datepicker-title-row .ui-datepicker-week-end-cell { background: #B1DB87; } .ui-datepicker-days-row { background: #FFF; color: #666; } .ui-datepicker-week-col { background: #B1DB87; color: #000; } .ui-datepicker-days-cell { color: #000; border: 1px solid #DDD; } .ui-datepicker-days-cell a { display: block; } .ui-datepicker-week-end-cell { background: #E0F4D7; } .ui-datepicker-unselectable { color: #888; } .ui-datepicker-week-over, .ui-datepicker-week-over .ui-datepicker-week-end-cell { background: #B1DB87 !important; } .ui-datepicker-days-cell-over, .ui-datepicker-days-cell-over.ui-datepicker-week-end-cell { background: #FFF !important; border: 1px solid #777; } * html .ui-datepicker-title-row .ui-datepicker-week-end-cell { background: #B1DB87 !important; } * html .ui-datepicker-week-end-cell { background: #E0F4D7 !important; border: 1px solid #DDD !important; } * html .ui-datepicker-days-cell-over { background: #FFF !important; border: 1px solid #777 !important; } * html .ui-datepicker-current-day { background: #83C948 !important; } .ui-datepicker-today { background: #B1DB87 !important; } .ui-datepicker-current-day { background: #83C948 !important; } .ui-datepicker-status { background: #E0F4D7; width: 100%; font-size: 80%; text-align: center; } #ui-datepicker-div a, .ui-datepicker-inline a { cursor: pointer; margin: 0; padding: 0; background: none; color: #000; } .ui-datepicker-inline .ui-datepicker-links a { padding: 0 5px !important; } .ui-datepicker-control a, .ui-datepicker-links a { padding: 2px 5px !important; color: #000 !important; } .ui-datepicker-title-row a { color: #000 !important; } .ui-datepicker-control a:hover { background: #FDD !important; color: #333 !important; } .ui-datepicker-links a:hover, .ui-datepicker-title-row a:hover { background: #FFF !important; color: #333 !important; } .ui-datepicker-multi .ui-datepicker { border: 1px solid #83C948; } .ui-datepicker-one-month { float: left; width: 185px; } .ui-datepicker-new-row { clear: left; } .ui-datepicker-cover { display: none; display: block; position: absolute; z-index: -1; filter: mask(); top: -4px; left: -4px; width: 193px; height: 200px; } .checkout_forms_hidden { display: none; } div.custom_meta { clear: both; } div.wpsc_category_details { margin: 0px 0px 8px 0px; } div.wpsc_category_details img { float: left; margin: 0px 6px 12px 0px; } div.wpsc_page_numbers a.selected { text-decoration: underline; } #products_page_container .wpsc_category_grid { width: 50%; } .wpsc_category_grid a.wpsc_category_grid_item { display: block; margin: 0px 7px 7px 0px; float: left; } /* Widget CSS */ .shopping-cart-wrapper form { clear: right; } /*span.pluspostagetax { float: right; }*/ .widget_wpsc_categorisation .wpsc_categorisation_group { width:100%; float:right; margin-bottom:10px; position:relative; } .clear_category_group { clear: both; } .widget_wpsc_categorisation h4.wpsc_category_title { margin-top: 4px; } .widget_wpsc_categorisation ul.wpsc_top_level_categories { } .widget_wpsc_categorisation ul.category_images li { background: none !important; clear: both; } .widget_wpsc_categorisation ul.category_images li:before{ content: "" !important; } .widget_wpsc_categorisation ul.category_images .wpsc_category_image_link { margin: 0px 0px 4px 0px; float: left; font-size: 9px; font-weight: normal; } .widget_wpsc_categorisation ul.category_images a.wpsc_category_link { display: block; margin: 3px 0px 0px 4px; float: left; } .list_productdisplay .alt { background-color: rgb(238, 238, 238); } .category-product-list { display: none; } #content .widget_specials strong a.wpsc_product_title { font-weight: bold; } .widget_specials span.pricedisplay { float: none; } /* post-content */ Similar TutorialsHi all I am tearing my hair out over THIS page. In FF and any other browser which was not programmed by Monkeys the page displays correctly, re-sizing the page in FF is fine. However re-sizing the page to a narrow width in IE makes the main text content pop down to below the menu, why is this? The Menu on the left is Floated Left in a div, while the main content is in another div, which is not floated. I have tried min-width, width and min-width Hacks for IE, none seem to fix it. The CSS for the page is HERE Thanks for any input Jake i am running a test page and it looks exactly how i want in my brower which is FIREFOX-- which i LOVE by the way-- it beats IE all to pieces-- anyway-- i had a friend check out my page this morning and she said it is ALL SCREWED UP-- i have validated both xhtml and css and all is ok-- so can anyone go look at the page and see if it is screwed up and if so what can i do to fix it... i am so tired- and so drained-- my brain is mush-- been working on this for days and way into the night-- and now i am just too mixed up..exhuasted, and confused to figure out what could be wrong MANY THANKS IN ADVANCE LINK TO PAGE css code body { background-color: #8548BE; color: purple; font-family: "Lucida Grande",Verdana, Arial, Sans-Serif; font-size: 12pt; text-align: center; margin-top: 0; } #container { background-color: #C2A4DE ; border-bottom: 3px solid #DE11FF; border-left: 3px solid #DE11FF; border-right: 3px solid #DE11FF; margin-bottom: auto; margin-left: auto; margin-right: auto; margin-top: 0; text-align: left; width: 755px; } #pageHeader { background-color: #000000; background-image: url(IMAGES/creativedistortion2a.jpg); background-position: center; background-repeat: repeat; border-color: #9E64A7; border-style: inset; border-width: 6px; height: 296px; text-align: right;/*creative distortion*/ width: 751px } /*this is quick summary*/ #welcome { background-color: #C2A4DE; border-bottom: #9E64A7 1px solid; border-left: #9E64A7 1px solid; border-right: #9E64A7 1px solid; border-top: #9E64A7 1px solid; border-style: inset; margin-bottom: 24px; margin-left: 290px; margin-top: 10px; padding-bottom: 12px; padding-left: 12px; padding-right: 12px; padding-top: 12px; width: 430px; } /*this is intro*/ #preamble { background-color: #C2A4DE; border-bottom: #9E64A7 1px solid; border-color: #9E64A7 ; border-left: #9E64A7 1px solid; border-right: #9E64A7 1px solid; border-top: #9E64A7 1px solid; border-style: inset; margin-bottom: 24px; margin-left: 290px; padding-bottom: 12px; padding-left: 12px; padding-right: 12px; padding-top: 12px; width: 430px; } /*this is whats it about ,participation, benefits*/ #supportingText { background-color: #C2A4DE; border-bottom: #9E64A7 1px solid; border-left: #9E64A7 1px solid; border-right: #9E64A7 1px solid; border-top: #9E64A7 1px solid; border-style: inset; margin-bottom: 24px; margin-left: 290px; padding-bottom: 12px; padding-left: 12px; padding-right: 12px; padding-top: 12px; width: 430px; } h2 { font-size: 12pt; text-decoration: none; color: lime; } p { font-family: Verdana, Arial, Sans-Serif; font-size: 10pt; line-height: 100%; text-align: center; color: #764B7D; padding: 0px; } p.footer { font-family: Verdana, Arial, Sans-Serif; font-size: 6pt; font-weight: bold; text-align: center; margin-top: 40px; } ul { font-family: Verdana, Arial, Sans-serif; font-size: 10pt; font-weight: bold; margin: 0px; padding: 5px; } ol { font-family: Verdana, Arial, Sans-serif; font-size: 70%; font-weight: bold; margin: 0px; padding: 5px; } /*MUST be in this order- these are psuedo class elements */ a:link { color: purple; font-weight: bold; text-decoration: none; } a:visited { font-weight: bold; color: white; text-decoration: underline; } a:hover { background-color: fuchsia; color: yellow; text-decoration: underline; } a:active { color: yellow; text-decoration: underline; font-weight: bold; } /*this uses the descendent selector display to give form to the nav bar elements */ #linkList { float: left; margin-top: 20px; /*sets distance between each conter */ margin-left: 248px; position: absolute; top: 280px; width: 280px; /*sets size of list container */ } #linkList div { margin-left: 5px; margin-top: 40px; } /* sets linklist properties */ ul { font-family: "Lucida Grande", "Lucida Sans Unicode", Lucida, Helvetica, Verdana, Arial, Sans-serif; font-size: 70%; margin: 0px; padding: 5px; /* sets list how far from left edge */ } li { color: lime; font-weight: bold; line-height: 22px; list-style-type: none; padding-right: 20px } #lselect { /* this is artwork*/ background-color: transparent; background-image: url(IMAGES/creativedistortion2a.jpg); background-position: top; background-repeat: repeat-y; border-color: #D286DF; border-style: inset; border-width: 2px; font-family: Comic Sans MS, Sans-Serif; font-weight: bold; color: lime; } #larchives { background-color: transparent; background-image: url(IMAGES/creativedistortion2a.jpg ); background-position: bottom left; background-repeat: repeat-y; border-color: #D286DF; border-width: 2px; border-style: inset; font-family: Comic Sans MS, Sans-Serif; color: lime; } #lresources { background-color: transparent; background-image: url(IMAGES/creativedistortion2a.jpg); background-position: bottom rightr; background-repeat: repeat-y; border-color: #D286DF; border-style: inset; border-width: 2px; } /* artwork header */ h3.select { color: lime; font-family: Comic Sans MS, Sans-Serif; font-size: 12pt; font-weight: bold; margin-bottom: 5px; margin-left: 10px; } h3.arhives { color: lime; font-family: Comic Sans MS, Sans-Serif; font-size: 12pt; font-weight: bold; margin-bottom: 5px; margin-left: 10px; } h3.resources { color: lime; font-family: Comic Sans MS, Sans-Serif; font-size: 12pt; font-weight: bold; margin-bottom: 5px; margin-left: 10px; } #linkList li a:link { background-color: transparent; color: lime; } #linkList li a:visited { background-color: transparent; color: white; } #linkList li a:hover, #linkList a:active { background-color: fuchsia; color: yellow; } Hello, I am working on a site. theweedkiller dot com I have 3 links which are being laid out using a <ul> The problem is the margin between home and service is fine, but the margin between services and contact seems to be double the size. I have tried adding display:inline; and it seemed to do nothing. I am getting this problem in Chrome, Firefox, and IE8. I am using a CSS reset too. Heres is the HTML I am using - <div id="nav"> <ul> <li> <a href="index.html" id="current">Home</a> </li> <li> <a href="services.html">Service</a> </li> <li> <a href="contact.html">Contact</a> </li> </ul> </div> <!--end of nav div--> Heres is the CSS I am using - #nav ul { margin-left:370px; list-style-type:none; } #nav ul li { float:left; display:inline; } #nav ul li a { font-family:"Myriad Pro", Arial, sans-serif; font-size:20px; font-weight:bold; color:#302013; padding:25px 50px 5px 50px; background-image:url(images/nav.png); background-repeat:no-repeat; text-decoration:none; display:inline; margin-right:10px;!important } #nav ul li a:hover { font-family:"Myriad Pro", Arial, sans-serif; font-size:20px; font-weight:bold; color:#fff; background-image:url(images/nav-over.png); background-repeat:no-repeat; text-decoration:none; } #nav #current { font-family:"Myriad Pro", Arial, sans-serif; font-size:20px; font-weight:bold; color:#fff; background-image:url(images/nav-over.png); background-repeat:no-repeat; text-decoration:none; } I have no clue why this is happening. Any help would be useful. Thanks! I'm using margin:auto; to center my pages. I've got an image on the left side, so I pad the write and then do the center on teh whole container. It works great all the pages of my site except for one. http://www.sexy-tan.com but when you go to the cart page to view your cart http://www.sexy-tan.com/cart/cart.php it breaks and the page floats left. I"m using the EXACT same css for all the pages and the same layout, I"ve copy and pasted a working hierarchy from another page and still no dice. Any ideas? Also, it works just fine in firefox, but messes up only in IE. I am trying to create a simple horizontal list menu on this page.(link: http://northshorewebdesign.net/testsite/) This is the menu under the slideshow. When I add the menu, the menus above get messed up. I tried changing margin, padding etc but the other menus get mesed up. The site looks ok in IE but it looks bad in FF and Opera. Here's what I am trying to achieve(Link: http://webone.mcaec.org/wordpress/) Here's the code I'm using: Code: .homepage-sub-menu {width: 960px; height: 70px; background-color:#00CCFF; position: relative;} .homepage-sub-menu ul {list-style-type: none; margin: 0; padding: 0; overflow: hidden;} .homepage-sub-menu li {float: left;} .homepage-sub-menu li a:link,a:visited {display: block; width: 192px; font-family:Calibri, Arial, Helvetica, sans-serif; color: #ffffff; text-align: center; text-decoration: none; padding-top: 10px;} .homepage-sub-menu li a:hover {text-decoration: underline;} Any help or suggestions would be appreciated Hi, I'm having some layout troubles on my website: http://www.whollylife.org/ It looks the way I want when viewed with IE 6.0, but with FF (and I'm sure, all other standards compliant browsers) it looks a little off) I'm just having issues getting the top margin, the float:left nav bar, and the content-container where I'd like them to be. I figure, until I know how to resolve the issue, I'll post the site as viewable in IE... any help? I am attempting to do a site with all divs for the layout. My main issue is that in the body of the homepage, there will be two columns: one a static image, and the other will be the content which may end up being longer than I had designed for. My main concern is that if the content does become longer, is there a way that the div that positions the footer can be moved down accordingly, and if the background image behind the static image will extend with the lengthy content. Links: How I want to look: http://www.mrossana.com/newstrut/ Corresponding Style Sheet: http://www.mrossana.com/newstrut/style2.css (*There is a lot of stuff on there that was not my doing. I'm mostly concerned with the id styles.) How I want the layout to be with divs and my issue: http://www.mrossana.com/newstrut/csslayout.html Style Sheet: http://www.mrossana.com/newstrut/style.css Thanks! hi, kinda of new to working with css for layouts, but a friend told me its good to make the change over from using tables... well heres my dilema. i want to make a layout like this..... Code: |-----------------------------------| |Header | |-----------------------------------| | Advert | Loginbox | | |--------------------------| | |Main content | | |Main content | | |Main content | | |-----------------------------------| In tables... its 3 rows 3 column.... with 1st column on 1st row spanning 3 columns and 3rd column on 2nd row spanning 2 rows and 1st column on 3rd row spanning 2 columns Attached is what i have so far for my css... or visit www.ftapro.co.uk/csslayout.html its just the Main content part which i can get to fit into place. I am very greatful for any help. Rob Hey friends, I am having some problem, may be you ppl can help me. Well i am using Social Engine with template. and i have the probelm that when i click on a link my LOGO and Menu moves upside automatically. Some area of CSS is wrapped in a code snippet. Code: /* GLOBAL STYLES */ html { min-height: 100%; margin-bottom: 1px; } body { background: #FFFFFF; position: relative; text-align: center; font-size: 11px; cursor:default; margin: 0px; } table.body { width: 900px; padding:0px; } p { margin: 0px; padding: 0px; } div, td { font-family: tahoma, "Trebuchet MS", arial, serif; font-size: 11px; color: #555555; line-height: 140%; } #main_background_top{height:59px; margin:0px; padding:0px; background-color:#29404f; width:100%;} #fake_body{position:absolute; top:0; width:990px; padding:0px; margin:0 auto;} #wrap{width:990px; padding:0px; margin:0 auto;} #container6 { float:center; padding:0px; width:990px; margin: 0 auto 0 auto; } /*RESETS*/ *{padding:0; margin:0;} ul{list-style-type:none;} fieldset{border:none;} a img{border:none;} a{-moz-outline:none;} /*HACKS*/ .clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden; } .clearfix {display:inline-block;} /* Hide from IE Mac \*/ .clearfix {display:block;} /* End hide from IE Mac */ .text_replace{background-repeat:no-repeat; outline:0; text-indent:-9999px;} a.text_replace:active{outline:0;} /*header*/ #global_header{position:relative; height:60px; } #focus_top{width:789px; height:38px; float:right; margin-top:20px; background-color:#1a2b37; border:1px solid #475f6f; border-bottom:none;} #global_header a{color:#fff;} #global_header h1#focus_logo{float:left; margin-bottom:0; } #global_header h1#focus_logo a{display:block; background-image:url(../images/focus_logo.gif); height:48px; width:195px; padding-bottom:0px; padding-top:0px; margin-bottom:1px; margin-top:5px; background-position:left top;} #global_header h1#focus_logo a:hover{display:block; background-image:url(../images/focus_logo.gif); height:48px; width:195px; padding-bottom:0px; padding-top:0px; margin-bottom:1px; margin-top:5px; background-position:left bottom;} .focus_top_menu{float:left;} .focus_top_menu ul { float:left; width:100%; outline:none; padding: 0; margin: 0; line-height: 38px; font-size:11px; text-align:left; } .focus_top_menu li { display: inline; outline:none; list-style: none; margin: 0; } .focus_top_menu li a { text-decoration: none; outline:none; text-transform:uppercase; color: #d4d7d9; padding: 13px 9px 12px 9px; line-height:38px; font-weight:normal; } .focus_top_menu li a:hover { background-color:#223644; } .focus_search{float:right;} .btn { border:0px solid #333333; width:21px; height:21px; outline:none; background-color: #191919; background-image: url(../images/search_ok.gif); background-position:bottom left; padding:0px; cursor:pointer; } .busca { border:1px solid #FFF; vertical-align:top; margin:0; position:relative; top:0; background-color: #ffffff; color:#646262; font-size:12px; font-family:Arial, Helvetica, sans-serif; float:left; letter-spacing:1px; height:13px; padding:3px 2px 3px 4px; width:196px;} .left_side{float:left; width:199px; height:400px;} .left_side_green{ background-color:#e2f6d4; height:14px; text-align:right; padding:2px 10px 4px 10px; color:#656161; font-weight:bold;} .left_side_blue{ background-color:#e4f2f3; height:14px; text-align:right; padding:2px 10px 4px 10px; color:#656161; font-weight:bold;} .left_side_yellow{ background-color:#f4f1de; height:14px; text-align:right; padding:2px 10px 4px 10px; color:#656161; font-weight:bold;} .left_side_red{ background-color:#f4e4e7; height:14px; text-align:right; padding:2px 10px 4px 10px; color:#656161; font-weight:bold;} .left_links_blue ul { padding: 0; margin: 0; line-height: 20px; font-size:11px; font-weight:normal; text-align:left; } .left_links_blue li { list-style: none; margin: 0; } .left_links_blue li a { width: 189px; background-color:#ffffff; text-decoration: none; color: #27494E; padding: 2px 0px 2px 10px; display: block; border-bottom: 1px solid #e3eff0; line-height:20px; font-weight:normal; } .left_links_blue li a:hover { background-color:#f0f7f8; color: #292728; text-decoration: none; } .left_links_yellow ul { padding: 0; margin: 0; line-height: 20px; font-size:11px; font-weight:normal; text-align:left; } .left_links_yellow li { list-style: none; margin: 0; } .left_links_yellow li a { width: 189px; background-color:#ffffff; text-decoration: none; color: #27494E; padding: 2px 0px 2px 10px; display: block; border-bottom: 1px solid #f1eedb; line-height:20px; font-weight:normal; } .left_links_yellow li a:hover { background-color:#f8f6eb; color: #292728; text-decoration: none; } input.text4{ border: 1px solid #B5BABA; font-family: arial, verdana, serif; font-size: 11px; font-weight:bold; margin-bottom:1px; margin-top:1px; color: #7C7D7D; vertical-align: middle; padding: 3px; } td.top_menu { background-image: url(../images/topbar_bg.gif); background-repeat: repeat-x; border-top: 1px solid #CCCCCC; border-bottom: 1px solid #BBBBBB; } td.top_menu2 { width: 20%; text-align: right; border-right: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC; border-bottom: 1px solid #BBBBBB; background-image: url(../images/topbar_bg.gif); background-repeat: repeat-x; } div.top_menu_link_container, div.top_menu_link_container_end { float: left; height: 31px; border-left: 1px solid #CCCCCC; } div.top_menu_link_container_end { border-left: 1px solid #CCCCCC; } div.top_menu_link { font-weight: bold; font-size: 13px; padding-top: 5px; padding: 6px 10px 0px 10px; } div.top_menu_link_loggedin { height: 25px; text-align: right; font-weight: bold; font-size: 13px; padding-top: 5px; padding: 6px 0px 0px 10px; } div.menu { width: 150px; border: 1px solid #CCCCCC; border-left: 3px solid #7391a8; background: #EEEEEE; padding: 0px 0px 10px 10px; margin-right: 10px; } div.menu_header { margin-top: 10px; margin-bottom: 7px; } td.menu_user { background-image: url(../images/menu_user.gif); background-repeat: repeat-x; background-color: #FFFFFF; padding: 5px 10px 5px 10px; border: 1px solid #CCCCCC; border-top: none; text-align: left; } div.menu_item { float: left; padding-right: 5px; font-weight: bold; background: none; } div.menu_sep { padding: 2px 0px 0px 10px; float: left; background: none; } img.menu_icon { display: block; float: left; margin-right: 6px; margin-top:2px; } img.menu_icon2 { margin-bottom: -3px; margin-right: 3px; } div.menu_arrow { padding: 2px; float: left; } div.menu_item_dropdown a { padding: 3px 40px 5px 7px; font-weight: normal; border-left: 3px solid #DDDDDD; display: block; background: #FFFFFF; } div.menu_item_dropdown a:hover { padding: 3px 40px 5px 7px; font-weight: normal; background: #F2F2F2; border-left: 3px solid #BBBBBB; text-decoration: none; display: block; } div.menu_dropdown { border: 1px solid #CCCCCC; border-top: none; background: #FFFFFF; position: absolute; margin-top: 6px; margin-left: -20px; z-index: 99; width: auto; white-space: nowrap; } td.topbar1 { padding-bottom: 5px; } td.topbar2, td.topbar2_right { background-image: url(../images/menu_bg.gif); background-repeat: repeat-x; font-weight: bold; font-size: 15px; padding: 10px 10px 8px 15px; color: #FFFFFF; border-bottom: 1px solid #31537D; } td.topbar2_right { font-weight: normal; padding: 10px 15px 8px 10px; text-align: right; } td.content { vertical-align: top; text-align: left; background: #FFFFFF; } div.content { width: 759px; min-height:600px; padding: 25px 15px 15px 15px; text-align: left; margin-left: auto; margin-right: auto; float:right; border-left:1px solid #b3b3b3; border-right:1px solid #b3b3b3; border-bottom:1px solid #b3b3b3; } Hi,, Guess you lads will find out the solution quick. The menu on the site: http://www.fisk.pyrabel.net/index.php always push the content down. and some issues in firefox as well. any suggestions to clean it up ? Thanks a million This is a pretty specific CSS question, but I do not see a CSS forum anywhere so i'm hoping someone here can help. In my site, I have assigned a background image to the <div> that contains my secondary navigation. I'm attempting to overlay my navigation buttons so that they line up at an exact position over the background image. It is working fine and Internet Explorer 6, but seems to be off by pixel or two and Netscape 7.1. http://www.budonk.com/budonk.php?prim=workwedo If you view this page in both browsers (looking specifically at the images beneath the logo), you will see that the text of the buttons lines up perfectly with the shape of the button (which is part of the bg image) and Internet Explorer, while in Netscape, the text for each button is too low by one or two pixels. You can view the page's source to see all of the CSS. I'm thinking it has something to do with the style #leftpane and/or .sNavImg ... but not too sure ... Any ideas? Hello, I am having trouble with the layout for round corners. I got it to work on Firefox, but can't seem to get it to function correctly in IE 6/7. There is a weird white gap at the bottom of the page, and the background color overflows at the top of the page. The site is [mark-richter . com/project1/index.asp] (Without the spaces around the .com. Sorry for brackets, rules prohibit me from posting links lol) Thanks for any help you can give. I'm working on a site: www.wirelessguy.net As you can see, the middle content is not extending all the way to the end of the middle iFrame. The code I'm dealing with is this. Here is the content id that I created in my css file. Code: <div id="content"> <iframe src="welcome.php" width = 100% height = 100% frameborder=1 scrolling=auto name="main"> </iframe> </div> Here is the welcome.php file. Code: <body margin=0> <div id = "welcome"> <table cellpadding=0 cellspacing=0> <tr> <th>Welcome to the American Communications Web Site</th> </tr> </table> </div> </body> Here is my css that pertains to the middle content. Code: div#content { position: absolute; top: 17%; left: 8%; right: 8%; bottom: 10%; height: 75%; border: 1.5px solid #333399; } #welcome table { border:1px dotted red; width: 100%; height: 100%; } #welcome th { border:1px solid black; background: #FF9933; font: normal 18px; } Any idea why the table will not extend all the way to the right? Also, the bottom borders are not being shown. It seems that the table is extending past the area defined by "content" in my css. Hi guys, I'm now working on my first proper site and started with what I think is a fairly complicated layout. Basically I would like to have 3 fixed width columns 2 of which, the left side and the right side one, having fixed position. In addition, the middle column has to have a "backgound-attachment: fixed" and no-repeat properties. At the moment I have 2 main problems: 1. IE7 thinks the left sidebar should be on the right. 2. I can't get the backgound image to be displayed correctly. Basically, it's not displayed if I use no-repeat property. If I don't use it, the backgound image isn't positioned properly (applies to both IE7 and FF3). I hope you can help, because I've spent nearly 2 days trying to work it out, but have had little success <head> <title></title> <link rel='stylesheet' media="screen" type='text/css' href='main.css' /> </head> <body> <div id="logo"><img src="logo4.gif" width="47" height="600" /> </div> <div id="nav"><img src="Images/Nav2.gif" width="162" height="512" /></div> <div id="header"> Filled with lore ipsum </div> </body> </html> and body { margin: 0 auto 0 auto; width: 760px; padding: 0; background:gray; } #logo { position: fixed; float: left; height: 100%; padding: 0; margin: 0; width: 47px; background: white; } #header { width: 551px; float:left; margin-left: 47px; padding: 0px; background-image: url(Images/Contents2.gif); background-attachment: fixed; background-repeat: repeat-x; background-color: white; background-position: top left; } #nav { position: fixed; float:left; margin-left: 598px; width: 162px; background-color: white; height:100%; } THANKS ALOT Hi all, I am having an issue with IE7. www[dot]novakwebsales[dot]com/help/index6.html When you hover over the top category tabs, it shifts the footer up. Then if you hover over the subcategory tabs on the left it drops down again??? It works fine in Firefox... Any ideas? Thanks in advance, Tbone Ive been trying to get my new site layout up, but as I was testing different browsers, IE7 has 1 problem. kb-studio.org/test/ when i was testing how it would look in different browser sizes, i noticed that it looked fine in all sizes above 1280 x 720. If you open, the site in a 1024 resolution, something weird happens to the background (only in IE). I validated my css and xhtml, can anyone help? I've been working with this issue for the better part of the day, and I think whatever the issue is, is one I'm not seeing because I've been doing just that. So I'm hoping to get a little guidance from those of you who're far superior to me in the world of CSS. On this site ianrobinett.com/designwork/SAMPO/Sitev1/ I've been working on, in Mozilla, the fullwidth div I put below my other divs (in the main body content area), is appearing off to the right of the Twitter widget. In Chrome and IE, funny enough, it's right, and it's Mozilla having the fit. I honestly figure this is something small, and something I'm just missing because I've been looking at the code all day. |