CSS - Problem With Paragraphs When Using Css
I'm experimenting using css, on the page
http://www.philmorris.biz/view.php?id=3278941167 The problem I have is the way that each line on the description has its own highlight- something that I've only experienced with css One thing I've noticed is that each line of the description is it's own paragraph, however since the description is pulled straight from eBay, there's not much I can do about that. Are there any obvious things I'm not thinking of? Thanks Similar TutorialsHello, I have a table formatted by CSS within which there are two styles of text, headers and content. I have the content formatted using a class (conftabledetail), with the statement: .conftabledetail {font-size:10px;} I did that to make the content more compact and distinguishable from the headers. I would like to force a space between the paragraphs of content without using a <br> tag. I read that there is an "adjacent selector" which can be used to locate adjacent tags and apply a style, for example p + p {margin-top:1em;}, which would put a 1em space between adjacent paragraphs. Apparently this selector does not work when used against a subclass, because I can't get this statement to work: p + p.conftabledetail {margin-top:1em;} I CAN get this statement to work: p.conftabledetail {margin-top:1em;} But that's not what I want to do. Anyone have any ideas as to what I need to change or do differently? It would also be nice to do this with a <div> tag so I don't have to repeat the class identifier on every <p> tag... Thanks, Chris This site is entirely CSS built and is database driven so it is completely dependent on classes and Id's. I have a conflict with <H5> in this page/site template I'm trying to edit. H5 is used for the title in the header and needs to be white. As you can see by the example of the my news section it looks just as I want it (H5 is the bigger bolder text that starts each paragraph) MyNews.jpg Code: <div class="bodyNews"> <h4>My News</h4> <h6> <h5>News 1</h5> Content ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. </h6> <h6> <h5>News 2</h5> Content ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. </h6> <h6> <h5>News 3</h5> Content ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. </h6> </div> And here's the CSS: Code: div.myNews {} h4 { font: 15px Georgia,serif; font-weight: normal; color: #6b3616; text-transform: uppercase; display: block; margin: 25px 0 2px 0; } h5 { font: 14px Georgia,serif; font-weight: normal; color: #6b3616; margin-right: 4px; display: inline; } h6 { font: 11px/14px Verdana,sans-serif; color: #3d412d; margin: 10px 4px 2px 0; } So the problem is the H5 though it looks fine in this news part it messes with the header H5 and I can't change the class there... There must be another way to do this... Can anyone offer an alternative? See the site he Template M I have a bunch of text with nice formatting using paragraphs and I want to have a spacing between the paragraphs. I could easily do that by: Code: p { margin-bottom: 25px; } But that will make it so the last paragraph to also have a margin like that, how can I make it so that the last paragraph have a bottom margin of 0? Just the last one in that bunch of text. Now that, this is dynamic content generated by WordPress. WordPress text is place using paragraphs but the last paragraph on each post also has a margin that shouldn't be there, or my current design of course. Is there a way around this? What is the correct way to remove the space between paragraphs? I have p { margin-top: -12px; } but IE/Win appears to be clipping the top of the topmost paragraph containers. What is the most compatible way to do this? Hi all, I'm trying to use CSS to apply style to ONLY images that are within paragraphs on my site. Code: <p> <img ... /> </p> In the past, some time ago, I thought I learned that "p img {...}" would accomplish what I'm trying to to. However, it applies the style to all images, not just images within paragraphs... Any one know any other methods? I have a couple hundred images already coded in, so just simply applying a class to the previous images isn't something I'd like to do. Thanks much, dbeg. i have a div that has a background img. when i have p's within this div the background img only shows up if theres a line of text there. i specified the height: 277px to fix this (if theres a better way, pls let me know). and tried to put overflow:visible within p's but its still clipping. any ideas? containing div: Code: #content .col { width: 303px; height: 277px; background: url(../images/one_third_box_top.png) no-repeat; float: left; } p: Code: #content p, ul { padding: 0 25px 0 30px; line-height: 1.5em; overflow: visible; } edit: this problem is in mozilla, but not in IE... weird. theres also one minor thing on a totally different subject. paths.. my paths a Code: /pub /css main.css /images foo.jpg foo2.jpg index.html obviously i have a link to the main.css in the index file but when i try to use url(images/foo.jpg), foo.jpg wont load? the path looks right unless im missing something... instead i have to url(../images/foo.jpg) for it to work... i always thought the '../' meant parent directory of the file (which is index.html since its linked from it)... right? thanks in advance. Hi! Should I do this? p { margin-top: 2em; margin-bottom: 2em; } or this: p { margin-bottom: 2em; } Same question for headers (h1, h2, etc) Thanks! Hey, I think i just need someone else to look at this for me. I've been coding all day and would probably be able to figure this out if I just went to bed and did it tomorrow. If you roll over an image that's alson an anchor at www.deeperdevotion.com/wp, you'll find that it places a background-color or underline or both on it. The thing is, I can't find the code in my CSS that's causing me the trouble. my css is located at www.deeperdevotion.com/wp/wp-content/themes/dd/styles/101106.css Thanks. Hello everyone, I am hoping I could get some help on this. I'm the new Marketing guy at this company. One of my duties is to fix an issue with our website which was built by the last guy to sit in this chair. I may not know how to build a proper webpage, but this guy knew exactly how not to do it and ran with just that. So, the issue lies within this example page: tinyurl.com/rediculouswebsite The footer ends up under-lapping the table when viewed in IE (when not in compatibility mode) and Firefox. I know this is a ridiculously constructed site, I just need to fix this one problem and be done with web development forever. High fives and scotch from my boss very well may ensue. Thank you all very much. Hello. I am new at css and web design so if these are easy problems please excuse. First of all, the website url http://www.onlinecasinoboss.com In Firefox, the unordered lists <ul> in the left column do not display correctly. The left margin is way too big. I'm not sure why, please look at the page in IE to see what I want it to look like. And in Internet Explorer, the spacing between my top image, header bar, and main page is screwy. There should be no space between the header image and header bar (the flags are in this area). Also there should only be 2px spacing between the header and the main page, however it appears there is atleast 24px there. Again please refer to the page in FF to see what I want it to look like. I like css, and have decided to pursue my first design in css based off of the many professional designers reconmendations and reviews. But I must say it is a major headache to deal with cross-browser/platform display problems. And what professional designer wants to rely on 'css-hacks' when producing a product for a major vender. Just beginner bitching. Thanks for the help! i am making a website....and i am new to css.....so i don't know how to correct the problem.....! my problem is of margin.....my website layout gets affected by different web browsers...! my layout gets affected when some one restores the window...! please help...! here is my css code...: Code: body, ul, ol, li, p, h1,h2, h3, h4, h5, h6, form, blockquote{ margin:0px; padding:0; } body{ margin: 60px 0px 0px 180px; font: normal 11px Verdana,Arial,Helvetica,sans-serif; color:#333333; background-position:top left; background: #202020 url(images/bgr.jpg) no-repeat; background-position: center top; } #top{ position:relative; margin:0 auto; width:980px; background-repeat:no-repeat; background-position:0 29px; } #head{ height:120px; position:relative; } #start{ height:40px; position:relative; background-image:url(images/start.png); background-repeat:no-repeat; width: 980px; } #main{ position:relative; float:left; width:960px; padding-left:10px; padding-right:10px; border-left: 1px solid #232a36; background-image:url(images/line.gif); background-repeat:repeat-y; } #top .content{ position:relative; float:left; width:640px; margin-right:20px; } .sidebar{ position:relative; top:-155px; right:205px; float:right; width:300px; background-color: #ffffff; } .sidebar-footer{ position:relative; top:-129px; right:-95px; float:right; width:300px; background: #1C2634 url(images/sidebar-footer.jpg) no-repeat scroll center top; height: 10px; } .bsa{ position:relative; float:left; width:278px; padding: 10px; } .bsa2{ position:relative; float:left; width:278px; background: #FFFFFF url(images/advertiser.jpg) repeat-y; border-right: 1px solid #3b73a5; border-bottom: 1px solid #3b73a5; margin-bottom:1px; padding: 15px; } .footer{ position:relative; clear:both; width:928px; top:-40px; padding:40px 20px 20px 20px; background-image:url(images/footer-top.jpg); background-repeat:no-repeat; background-color:#FFFFFF; margin-left:1px; float:left; } .footer_meta{ text-align:center; margin:5px 0 ; clear:both; } /*--------------------head--------------------*/ #head h1 a{ top:1px; left:20px; text-indent:-9999px; position:absolute; outline:none; width:380px; height:100px; z-index:2; } .description{ position:absolute; top:0; text-indent:-9999px; } /*------------------content--------------------*/ .breadcrumb, .entrys, .featured_entry, .featured_entry2, .navigation{ width:600px; line-height:34px; background-image:url(images/bg_box_content.jpg); background-repeat:no-repeat; background-position:top left; border:1px solid #b2b2b2; background-color:#fff; padding:0 20px; margin-bottom:14px; position:relative; float:left; } .entrys{ line-height:22px; padding:20px; } /*------------------top menu--------------------*/ div#navHeader {background: url(images/bg_skeletonTop.png) no-repeat 0px 45px; height: 90px; position:relative;} ul#menu {margin-left: 20px;} ul#menu li {float:left; margin-right: 5px; list-style: none;} ul#menu li a {display: block; color:#FFFFFF; font-size: 1.25em; font-weight: bold; text-decoration: none; height: 45px; padding: 1px 0 0 20px; float:left;} ul#menu li a:hover {color:#00a2ff;} ul#menu li a span {display: block; padding:12px 20px 31px 0px; } ul#menu li.navSelected a, ul#menu li.current-cat a, ul#menu li.current-cat-parent a {background: url(images/bgnavLeft.png) no-repeat scroll 0 1px; color:#fff} ul#menu li.navSelected a:hover, ul#menu li.current-cat a:hover {color:#f2f2f2;} ul#menu li.navSelected a span, ul#menu li.current-cat a span, ul#menu li.current-cat-parent a span {background:url(images/bgnavRight.png) no-repeat top right;} #subMenu {clear:both;} #subMenu ul {font-size: 0.9em; font-family:"Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial; } #subMenu ul {position:absolute; padding: 8px 0 8px 0; bottom:0; left:20px} #subMenu ul li {float:left; margin-right: 10px; color:#7c8d93; list-style: none;} Hi, I resolved the problem I was having before - thank you for the help. Now I have a new problem. If you look at the url www.northshorewebdesign.net/testsite/about, you'll see the sub page navigation on the left. The spacing netween the list items changes when you goe to a sub page - it wasn't doing that before. I have no idea what is causing it. Can anyone determine what would cause this? I checked using firebug and the items are associated with the correct css and this wasn't happening before I am currently trying to build a website for a church, and have run into a little css coding problem: It seems as if the browser is not interpreting how I see the CSS code to lay out on the page (common mistake I'm sure). I know a lot of the problems I am having comes from the height of my id's. If you take a look at "sci.tamucc.edu/~ksnapka/Website/Home/index.php" , the blue-bordered box is my "bodyWrap" css id. I am wanting this to expand to 100% of its contents inside the div container. If you look under some of the pages under "Our Faith in Action", I believe these work fine because I am using text inside of the bodyWrap container instead of other div containers nested in bodyWrap. The display on the home page actually looks better on IE, so I'm also not sure why firefox sets the height of that contained to 0 (I assume for some reason it sees that the container is empty since it just has other divs located inside of it?) The CSS code is on "sci.tamucc.edu/~ksnapka/Website/CSS/csTemplates.css" Any help is greatly appreciated Thank you in advance. So I have tested in all versions of IE and IE 7 seems to be the only one that gives me a problem. I have tried so many hacks. And now I am at a loss of ideas,time and mind. the site is woodbuiltright com / index-alpha1 php It seems the "E-Page" Div does not expand to contain everything. I have tried clearing divs but I must be missing something. Thanks Need to know how the pull down menu and a browse button could take a style like http://www.discovertravel.no/ i tried to make it but it did not work on firefox... so can anyone help me to make this style coz it appears well in firefox. Hi everyone I am very new to making a website using CSS. I use Dreamweaver to help me and don't write the code so I am still learning. APOLOGIES IF I AM BEING STUPID - please be kind! My new website is looking good in all browsers except one web page in IE6 and IE7 where the thumbnail images, instead of wrapping below each other - string out in a long line across the web page. I am using the same class multiple times, and the container # width dimensions have been specified The web page is www"."marcusbunyan"."com/marcuscss/the-symbolic-order/tso-thumbnail.html The code for the relevant section of the web page is Code: <div id="tsothumbnail"> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-a.html"><img src="/assets/images/the-symbolic-order/a-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-b.html"><img src="/assets/images/the-symbolic-order/b-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-c.html"><img src="/assets/images/the-symbolic-order/c-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-d.html"><img src="/assets/images/the-symbolic-order/d-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-e.html"><img src="/assets/images/the-symbolic-order/e-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-f.html"><img src="/assets/images/the-symbolic-order/f-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-g.html"><img src="/assets/images/the-symbolic-order/g-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-h.html"><img src="/assets/images/the-symbolic-order/h-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-i.html"><img src="/assets/images/the-symbolic-order/i-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-j.html"><img src="/assets/images/the-symbolic-order/j-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-k.html"><img src="/assets/images/the-symbolic-order/k-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-l.html"><img src="/assets/images/the-symbolic-order/l-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-m.html"><img src="/assets/images/the-symbolic-order/m-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-n.html"><img src="/assets/images/the-symbolic-order/n-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-o.html"><img src="/assets/images/the-symbolic-order/o-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-p.html"><img src="/assets/images/the-symbolic-order/p-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-q.html"><img src="/assets/images/the-symbolic-order/q-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-r.html"><img src="/assets/images/the-symbolic-order/r-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-s.html"><img src="/assets/images/the-symbolic-order/s-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-t.html"><img src="/assets/images/the-symbolic-order/t-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-u.html"><img src="/assets/images/the-symbolic-order/u-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-v.html"><img src="/assets/images/the-symbolic-order/v-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> <div class="tsothumbnail"><a href="/the-symbolic-order/tso-w.html"><img src="/assets/images/the-symbolic-order/w-thumb.jpg" alt="The Symbolic Order (cartes de visite) 2011" width="88" height="64" border="0" /></a></div> </div> and the .css is Code: #container { position: relative; margin-left: auto; margin-right: auto; width: 1053px; text-align: left; margin-top: 7px; height: auto; vertical-align: top; overflow: visible; } #container #tsothumbnail { clear: right; float: left; height: auto; width: 600px; margin-left: 180px; margin-top: 40px; margin-right: 220px; position: relative; margin-bottom: 30px; } #container #tsothumbnail .tsothumbnail { clear: right; float: left; height: 66px; width: 92px; position: relative; } The html and css both validate. Thankx for your help much appreciated Marcus Hello all, Apologies to be asking for help on my first post, but I've scoured the internet looking for what is probably a quick fix but without the terminology I'm losing hours - time to ask for help! my site is englas.pl and in forefox it's fine. In ie8 it seems to be fine as well, the problem is with ie 6&7. The CSS validates according to the w3c site. (Sorry, can't add urls as i'm a new user) ie6&7 'cuts' off the bottom section of text where the container meets menu-bottom-bkg. At least this is what is visibly the case when you look at the webpage. The custom div look like this: #container { background: #FFF url(../images/bkg_container.png) repeat-y; min-height: 100%; width: 1190px; margin: 0 auto; padding: 0 14px 0 14px; } #header { background: url(../images/bkg_header.png); height: 127px; width: 1160px; margin: 0; padding: 15px 0 0 30px; } #menu-top-bkg { background: url(../images/bkg_menu_top.png) no-repeat left top; height: 128px; width: 1190px; margin: 0 0 -128px 0; } #wrapper { overflow: auto; background: url(../images/bkg_menu.png) repeat-y left; min-height: 500px; width: 1190px; margin: 0; padding: 0; } #menu { float: left; background: none; min-height: 370px; width: 159px; margin: 0; padding: 110px 0 0 0; } #content { float: right; background: url(../images/bkg_content.png) no-repeat right top; min-height: 400px; width: 763px; margin: 0 0 0 25px; padding: 15px 243px 10px 0; } #menu-bottom-bkg { background: url(../images/bkg_menu_bottom.png) no-repeat; height: 141px; width: 1190px; margin: -111px 0 0 0; } #footer { background: url(../images/bkg_footer.png); height: 100px; width: 1190px; margin: 0; padding: 16px 0 0 0; } I've gone through the html and i can't find any evidence of it being this, so i'm hoping that the css work above doesn't comply with something in the ie6&7 coding spec. I've read the guidelines to posting, so I've edited the post as much as possible to be helper friendly! Many thanks to all, doodlebug I've added a border around my exiting web sites main interface page (all the content gets generated via php inside this page). But I'm having two probelms with the <div> structure that are driving me mad. I've moved all the styles inline and I've taken out almost all the php to make the file more readable. I have two points of confusion. 1) Why is the lower part of the border showing outside the container with the background. 2) How do I get the side parts of the border to fill the entire side. I googled this and have given all the containing div's heights, but every time I give these elemnts height other than the size of the image in the background they shrink to about 20 pixels. Code: Thanks for any help. You can see the real web page at www.greystackcellars.com <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title><?php print $meta_title ?></title> <style> .HeadLine { clear:both; background-color: #8c8170; height: 25px; text-align: center; vertical-align: middle; padding-top: 7px; color: #FFFF99; font-size: 14px; } .Bottom { COLOR: #333333; font-size: 10px; text-align: center; clear: both; background-color: #8C8170; width: 820; height: 25px; padding-top: 7px; } </style> </head> <body style="margin:0; padding:0; height:100%;" > <div ID="Container" style="border: solid #8C8170 2px; margin: 0 auto; width: 962px; z-index: 1; height: 100%; background: url(images/background.jpg); background-repeat: repeat;"> <div id="top_decoration" > <div style="width:54px; height:51px; float:left; background: url(images/label-border-top-left.gif);"></div> <div style="float:left; width:857px; height:51px; background: url(images/label-border-top-mid.gif);" ></div> <div style="width:51px; height:51px; float:right; background: url(images/label-border-top-right.gif);" ></div> </div> <div id="border_container" style="height:100%; clear:both;"> <div id="left_border" style="height:550px; float:left; width: 20px; background: url(images/label-border-left.gif); background-repeat: repeat;"> </div> <div id="content_container" style="float:left; width:920px;"> <div id="Banner" style="position:relative; height:150px; width: 100%;"> <div id="YouAreHere" style=" padding-left: 10px; float:left; width:220px; height: 140px; "> </div><!-- your are here --> <div id="logo" style="float:left;"> <IMG src="images/logo.jpg" border="0" alt="Grey Stack Cellars"/> </div> <div align="right" style="float:right; padding-right: 20px; height:150px;"> <table height ="100%" width="100%"> <tr><td align="center"> <?php if ($_SERVER['HTTPS'] == 'on') { ?> <img src="images/icon-thawte2.gif" alt="Thawte SSL"> <?php } ?> </table> </div> </div> <!-- banner --> <div id="headline" style="clear:both; background-color: #8c8170; height: 25px; text-align: center; vertical-align: middle; padding-top: 7px; color: #FFFF99; font-size: 14px; width: 100%;"> <a href="index.php?Page=Home" class="head">Home</a> | <a href="index.php?Page=Bennett Valley" class="head">Bennett Valley</a> | <a href="index.php?Page=WineCategory& Category=Current Release Wines" class="head">Buy Wine</a> | <a href="index.php?Page=People" class="head">Information</a> | <a href="index.php?Page=ContactUs" class="head">Contact</a> | <a href="AccountFunctions.php?Mode=Cart" class="head">View Cart</a> | <a href="index.php?Page=Background" class="head">Trade</a> | <a href="http://www.greystackcellars.com/HomeGrown/index.php?Page=AccountManager" class="head">My Account</a> | <a href="AccountFunctions.php?Mode=LogOut" class="head">Log Out</a> </div><!-- headline --> <div ID="Wrapper" style="width: 920px; z-index: 1; height: auto; min-height: 400px; vertical-align: top; background: url(images/background.jpg); background-repeat: repeat;"> <!-- This has almost everything --> <div ID="main" style=" padding: 10px 0px 10px 0px;"> <!-- this has just the padding --> <div class="DialogTitle" style=" color:#555555;"> <?php print $page_title ?> </div><!-- page title --> <?php if (!file_exists($page_file)) print ("Internal error: File ".$page_file." for Page ".$_REQUEST['Page']. " not found<br>"); else require_once($page_file); ?> </div> <!-- main --> </div> <!-- Wrapper --> <div class="Bottom"> <a href="index.php?Page=SiteMap" class="bottom-link">Site Map</a> | <a href="index.php?Page=Terms" class="bottom-link">Terms & Conditions</a> | <a href="index.php?Page=Privacy" class="bottom-link">Privacy Policy</a> | <a href="index.php?Page=Gallery" class="bottom-link">Photo Gallery</a> </div> <!-- Bottom --> </div> <!-- content_container --> <div id="right_border" style="float:right; width: 20px;"> <img src="images/label-border-right.gif" width="20" height="555"> </div> </div> <!-- left and right border_container --> <div id="bottom_decoration" style="clear:both"> <div style="width:56px; height:56px; float:left; background: url(images/label-border-bot-left.gif);"></div> <div style="float:left; width:848px; height:51px; background: url(images/label-border-bot-mid.gif);" ></div> <div style="width:56px; height:56px; float:right; background: url(images/label-border-bot-right.gif);" ></div> </div><!--bottom decoration--> </div> <!--Container--> </body> </html> Peter Hi, I am having an issue using my CSS code, I have a drop down section on my menu bar on my site. I'm trying to firstly just set the background of the whole bar, Code: #nav-m { font: normal 12px Verdana; font-weight: bold; width: 100%; } #nav-m ul { float: left; left: 0; padding: 2px 0; text-decoration: none; text-indent: 5px; } #nav-m a { display: block; width: 10em; w\idth: 6em; color: #012345; text-decoration: none; padding: 0.25em 2em; } #nav-m a.daddy { } #nav-m li { float: left; padding: 0; background-image: url(http://taxbusters.eu.com/images/nav-bar1.jpg); background-repeat: no-repeat; } #nav-m li ul { position: absolute; left: -999em; height: auto; width: 14.4em; w\idth: 13.9em; font-weight: normal; border-width: 0.25em; margin: 0; } #nav-m li li { padding-right: 1em; width: 13em } #nav-m li ul a { width: 13em; w\idth: 9em; } #nav-m li ul ul { margin: -1.75em 0 0 14em; } #nav-m li:hover ul ul, #nav-m li:hover ul ul ul, #nav-m li.sfhover ul ul, #nav-m li.sfhover ul ul ul { left: -999em; } #nav-m li:hover ul, #nav-m li li:hover ul, #nav-m li li li:hover ul, #nav-m li.sfhover ul, #nav-m li li.sfhover ul, #nav-m li li li.sfhover ul { left: auto; } #nav-m li:hover, #nav-m li.sfhover { background: #bdd7e6; } however the background doesnt show up, and the font alignment isnt right, - there are so many problems http://alturl.com/nfkp *just moved this from the html forum. Didnt see this one at first.* Ok. So I have been reworking my company's website and have recently came upon a problem. Originally when I was coding, I was using Chrome. I kept checking my progress in Safari, IE8, Firefox, and Opera (or so I thought), and I never had problems. Today when showing my boss, he opened it in IE6 and it looked like crap. Came back to my desk and opened in IE8 and all the divs are screwed up. It looks perfect in the other browsers, just IE. Anyone give me a tip, or help out? Id appreciate it. Been beating my head against a wall trying to figure it out. FYI, none of the links work yet. I am basing this off of "fixed header and footer" code I found he http://limpid.nl/lab/css/fixed/header-and-footer Here is my site: http://margraphics.com/NewSite/History.php html: Code: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>MAR Graphics - History</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=8" /> <link rel="stylesheet" type="text/css" href="Images/Style.css" /> <meta name = "keywords" content="printing services, brochure printing, book printing, post card printing, printing, digital printing, business card printing, color printing, poster printing, commercial printing, printing company, printing equipment, catalog printing, magazine printing, label printing, brochure printer, book printer, post card printer, business card printer, poster printer, Catalog printer, Magazine printer, Label printer, U-seal, useal, integrated label, integrated card, interplast, business forms, pressure seal, unit sets, manifold forms, business form, cut sheet, cut sheets, continuous forms, labels, label, form/label combinations, digital printing, docutech, on demand printing, commercial printing, direct mail, commercial printing, mailing services, print, forms, documents, printing, variable imaging, one-to-one marketing, personalization, handbooks, manuals, school handbooks, binders, inkjet, barcodes" /> </head> <body> <div id="Header" class="Header"> <div id="fullheader"> </div> <div id="HeaderPane" class="HeaderPane"> <a href="index.php"> <img src="Images/MARlogo.png" alt="MARLogo" border="0" style="position: absolute; left: 134; top: 9;" /> </a> <div id="Address" style="position: absolute; right: 9; top: 7;" class=" AddressText"> 523 South Meyer Avenue <br /> Valmeyer, IL 62295 <br /> 618-935-2111 <br /> 800-851-4460 </div> </div> </div> <div id="footer"> <div id="NavPaneFade" class="NavPaneFade"> </div> <div id="NavPane" class="NavPane"> <div id="About" style="position: absolute; left: 95; top: 7;" class=" NavPaneText"> A little about us ... <img src="Images/Header-Red.png" alt="Red Header Bar" style="position: absolute; left: -6; top: 17;"/> <br /> <a href="History.php">History</a> <br /> <a href="News.php">News</a> <br /> <a href="Equipment.php">Equipment</a> </div> <div id="NavPaneWrapper"> <div id="NavPaneContainer"> <div id="What" style="top: 7;" class=" NavPaneText"> What we offer ... <img src="Images/Header-Green.png" alt="Green Header Bar" style="position: absolute; left: -6; top: 17;"/> <br /> <a href="Direct.php">Direct Mailing</a> <br /> <a href="Integrated.php">Integrated Cards/Labels</a> <br /> <a href="Variable.php">variable/Digital Imaging</a> <br /> <a href="Forms.php">Forms</a> <br /> <a href="Labels.php">Labels</a> <br /> <a href="Warehousing.php">Warehousing</a> <br /> <a href="Seku.php">Sekur Seal</a> </div> </div> </div> <div id="Little" style="position: absolute; right: 95; top: 7;" class=" NavPaneText"> A little bit of everything else ... <img src="Images/Header-Blue.png" alt="Blue Header bar" style="position: absolute; left: -6; top: 17;"/> <br /> <a href="Contact.php">Contact Us</a> <br /> <a href="FAQ.php">FAQ</a> <br /> <a href="OnlineOrder.php">Web ordering</a> </div> <div class="prop"></div> <br /> <div class="clear"></div> </div> <div id="fullFooter" class="Footer"> <div id="SiteMap" style="position: absolute; left: 134; top: 4;"> <a href="_blank" class="FooterText"> Home </a> | <a href="_blank" class="FooterText"> Sitemap </a> | <a href="_blank" class="FooterText"> Privacy </a> | <a href="_blank" class="FooterText"> Terms </a> </div> <div id="Copyright" style="position: absolute; right: 134; top: 10;" class=" FooterText"> <span class="FooterText"> Copyright 2010 MAR Graphics </span> </div> <a href="http://www.facebook.com/pages/Valmeyer-IL/MAR-Graphics/326577303828" target="_blank"> <img src="Images/Facebook.png" alt="Facebook" border="0" style="position: absolute; right: 100; top: 3;" /> </a> </div> </div> <div id="Content"> <div class="Rounded-Top"> <div class="Rounded-Bottom"> <div class="Rounded-Left"> <div class="Rounded-Right"> <div class="Rounded-BottomLeft"> <div class="Rounded-BottomRight"> <div class="Rounded-TopLeft"> <div class="Rounded-TopRight"> <dl class="ContentPaneHeader"> <dt>Now celebrating our 49th year of providing print solutions to distributors/brokers nationwide!</dt> <dd class="ContentPaneContent"> <table width="100%" border="0" cellspacing="4"> <tr> <td width="81%" height="133" class="ContentPaneContent"> In March of 1961, Myron A. Roever started a printing company in a garage in East St. Louis, IL. Almost 50 years later, MAR Graphics continues to provide printing services to brokers nationwide. Through it all, we have prided ourselves in offering high quality and timely delivery. Now, in the 21st century, we continue to maintain that quality and speed in every product line we offer. </td> <td width="19%" height="133"> <img src="Images/marm1.jpg" width="204" height="129" alt="Myron Roever"/> </td> </tr> </table> <table width="100%" border="0" cellspacing="4"> <tr> <td width="18%" height="152"> <img src="Images/marm2.jpg" width="222" height="148" alt="Printing Press"/> </td> <td width="82%" height="152" class="ContentPaneContent"> MAR Graphics began as a unit set manufacturer under the name MAR Business Forms almost 50 years ago. In 1994, we changed our name to MAR Graphics to better reflect the products and services we now offer. Over the years, we have added other capabilities to our wide selection of web and sheet-fed presses, including flexographic label printing and digital printing. We now offer direct mail and commercial printing capabilities that expand the product mix we offer to the network of business printing distributors that we supply. </td> </tr> </table> <table width="100%" border="0" cellspacing="4"> <tr> <td width="75%" height="144" class="ContentPaneContent"> MAR Graphics is located in Valmeyer, Illinois, just outside St. Louis, Missouri. We offer a wide variety of printed products to forms distributors nationwide. MAR Graphics operates 14, 17, 22 and 28 inch presses capable of printing up to 10 colors, and our extensive digital imaging and bindery departments offers a multitude of value added features that make our documents and forms stand out from the rest. However, our most valuable resource is our staff of experienced and dedicated employees, who work hard to produce a high quality product in a fast and efficient manner. </td> <td width="25%" height="144"> <img src="Images/buildingfromair.JPG" width="210" height="140" alt="MAR at present"/> </td> </tr> </table> </dd> </dl> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-11509100-1"); pageTracker._trackPageview(); } catch(err) {} </script> </div> </div> </div> </div> </div> </div> </div> </div> </div> </body> </html> css: Code: body { padding-bottom: 280px; padding-left: 20px; padding-right: 20px; padding-top: 130px; background-color: #F3F3F3; } div#header { height: 110px; position: absolute; top: 0; left: 0; width: 100%; } div#footer { position: absolute; bottom: 0; left: 0; width: 100%; height: 280px; bottom: 0px; } @media Screen { BODY > DIV#header { position: fixed } BODY > DIV#footer { position: fixed } } * HTML BODY { overflow": hidden } * HTML DIV#content { height: 100%; overflow: auto; } #fullheader { height: 20px; position: absolute; top: 0; width: 100%; background-color: #F3F3F3; } #HeaderPane { background-image: url(Blue-Bar.png); background-repeat: repeat-x; height: 90px; position: absolute; top: 20px; width: 100%; } #NavPane { height: 240px; position: absolute; bottom: 20px; width: 100%; background-color: #3F3F3F; } #NavPaneFade { background-image: url(FadetoTop.png); background-repeat: repeat-x; position: absolute; top: 10px; width: 100%; } #NavPaneWrapper { right: 50%; position: absolute; top: 7px; } #NavPaneContainer { left: 50%; position: relative; } #fullfooter { height: 30px; position: absolute; bottom: 0; width: 100%; background-color: #F3F3F3; border-top: thick; border-top-color: #3F3F3F; border-top-style: solid; } .AddressText{ font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #f7f5f0; font-weight: bolder; text-decoration :none; } .NavPaneText { font-family: Arial, Helvetica, sans-serif; font-size: 16.5px; color: #F3F3F3; font-weight: bolder; text-decoration :none; } .FooterText { font-family: Arial, Helvetica, sans-serif; font-size: 9px; color: #3F3F3F; font-weight: normal; text-decoration:none; } a:link { color: #F3F3F3; text-decoration:none; } a:visited { color: #c8c8c8; text-decoration:none; } a:hover { color: #F3F3F3; text-decoration:none; } a:active { color: #F3F3F3; text-decoration:none; } #fullFooter a:link { color: #3F3F3F; text-decoration:none; } #fullFooter a:visited { color: #3F3F3F; text-decoration:none; } #fullFooter a:hover { color: #3F3F3F; text-decoration:none; } #fullFooter a:active { color: #3F3F3F; text-decoration:none; } .ContentPaneHeader { font-family: Arial, Helvetica, sans-serif; font-size: 20px; color: #075fa3; font-weight: 900; } .ContentPaneSubHeader { font-family: Arial, Helvetica, sans-serif; font-size: 17px; color: #5caf70; font-weight: 900; } .ContentPaneContent { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #3F3F3F; font-weight: 700; } /* Creating the 'notepad' look */ .Rounded-Top { background: url(Rounded-Dot.png) 0 0 repeat-x; background-color: #f1f0ec; overflow: auto; } .Rounded-Bottom { background: url(Rounded-Dot.png) 0 100% repeat-x } .Rounded-Left { background: url(Rounded-Dot.png) 0 0 repeat-y } .Rounded-Right { background: url(Rounded-Dot.png) 100% 0 repeat-y } .Rounded-BottomLeft { background: url(Rounded-BottomLeft.png) 0 100% no-repeat } .Rounded-BottomRight { background: url(Rounded-BottomRight.png) 100% 100% no-repeat } .Rounded-TopLeft { background: url(Rounded-Topleft.png) 0 0 no-repeat } .Rounded-TopRight { background: url(Rounded-TopRight.png) 100% 0 no-repeat; padding-left: 20px; padding-right: 30px; padding-top: 40px; padding-bottom: 30px; } |