Everything posted by jazzy639
-
Little help with CSS?
- Little help with CSS?
anyone?- Liquid or fixed?
With monitor sizes getting larger and larger, the point is sites which are truly liquid and expand out look terrible. All text is like on one line from the left to right making reading very difficult. Heres how your "liquid" version looks in my browser. Its not very liquid, the background expands a bit but the text stays the same.- Little help with CSS?
Hi again Just tried this and it doesnt work!?!? #left-float { width:180px; float:left; } #middle-float { width:1px; border-right: 1px solid #7faaca; float:left; height:100%; } #right-float { width:693px; float:left; margin-left:20px; } <div id="left-float">nav bar stuff here</div> <div id="middle-float"></div> <div id="right-float">content here</div> Works if I give the middle float a height in px, but 100% doesnt work.- Liquid or fixed?
Fixed, because on a 23" 2048x1152 monitor, liquid sites look stupid. EDIT: see you have examples to look at? The liquid isnt liquid... well at least not on chrome..- Little help with CSS?
If you take off the border on the right float as there should only be one line between the left and right side of the page. Now, when the right float is longer than the left, the border line will only go down to the end of the left float. How do we make this line extend down to the bottom of the page?- Little help with CSS?
I managed to find why, the Clear:both was set on the footer DIV, outside the content, so I added another DIV inside the content area with clear:both. Theres one last issue which I can't seem to sort. On your code, if you take out the height bits for the left float, right float and content so it auto expands, when you make the right float larger than the left (as would happen with text on the page), the 1px right border on the left float does not extend down. I don't know how to do it in CSS but it's like i'm looking to make the left float the same height as the right float so that the border extends down. If wouldnt work just switching the border to the right float because when the left float is larger, we would have the same issue. Thanks very much for all your help so far.- Little help with CSS?
Im using the above code to display the two divs side by side. However, the background image for the content area will not repeat when clear:both; is set. And without clear, the divs sit over the background images without the content area expanding - ie they are over the footer and below. How can I sort this? Thanks!- Little help with CSS?
Thanks, adding: padding-bottom:1px; padding-top:1px; fixes both. Sorry for being a noob, but care to explain why this fixes it and why it occurred in the first place? (ps this is why I hate CSS)- Little help with CSS?
One last question: why won't this display properly? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <!--[if lt IE 7]> <script type="text/javascript" src="unitpngfix.js"></script> <![endif]--> <style> body { background-image: url('images/bg.jpg'); background-repeat: repeat-x; background-color: #f6fafc; text-align: center; } #container{ width:955px; margin:0 auto; text-align: left; } #header { width:955px; height:48px; background-image: url('images/top.png'); background-repeat: no-repeat; } #content { width:895px; background-image: url('images/middle.png'); background-repeat: repeat-y; padding-left:30px; padding-right:30px; } #footer { width:955px; height:50px; background-image: url('images/bottom.png'); background-repeat: no-repeat; } </style> </head> <body> <div id="container"> <div id="header"></div> <div id="content"> <p>text</p> <p>#</p> <p>hfdh</p> <p>df</p> <p>h</p> <p>dfh</p> <p> </p> <p> </p> <p> </p> <p> </p> <p>dfh</p> <p>fdh</p> </div> <div id="footer"></div> </div> </body> </html>- Little help with CSS?
edit: deleted post- Little help with CSS?
Hmm I think this is a problem in IE6 and under: http://homepage.ntlworld.com/bobosola/pngtest.htm- Little help with CSS?
Ahh, the missing link: using PNG 24 for the transparency Thanks for that code. Using PNGs had never crossed my mind due to IEs problem displaying them. Unless i'm missing something, IE will show a black background? Thanks again n0xx EDIT: No need to do the content divs, I can do CSS just not that background part. PNGs solve the problem but are they cross browser compatible?- Little help with CSS?
If I do that, how do I get the text to sit on top and expand the correct div? The issue is if I have content in the box where the background is 1px high and repeat-y, the content will start way down the page due to the height required for the top image.- Little help with CSS?
I'm not trying to leech information off of you but it would be much appreciated if you could point to a specific approach that would do this task. The problem with CSS is there is more than one way of doing things, take rounded corner boxes as an example. If this page did not have the drop shadow then I could use a simple rounded box using 4 corners or a top/bottom image. I'm having difficulty due to the drop shadow over the gradient. Hope that makes sense!- Little help with CSS?
Thanks for posting that. I've still got the same issue though, I'll show you what I mean: Because there is the drop shadow on the page over a gradient background, the top image needs to be as high as the gradient background. So I tried the CSS you produced (thanks very much) and it produced this: Which is the same problem as the code I had already written which produced this: Really, I need to be able to write over the whole area, expanding the middle section background when the page grows. Although I can understand CSS is the way to go, every design I do seems 100x simpler using tables. CSS makes things complicated....- School Website?
Sorry I dont like it at all. The links are too big, eyes are drawn away from the content due to excessive graphics usage, feels really dated and chunky, unlike the new web 2.0 trend. You did ask for what we think!- Little help with CSS?
Thanks for the link. I have looked about but cannot find a solution for the above. If the white content holder did not have the drop shadow I could do this easily in css by using one of the many rounded corner tutorials. EDIT: Could a mod please move this to the CSS and XHTML/HTML Design & Layout forum - think its better placed there!- Little help with CSS?
Hello everyone! I'm used to using tables for layouts and have no idea how to implement this in CSS. The problem is I want the content to sit in a rounded box with a drop shadow, sitting over a gradient background. Then, inside the content area, there is a place for links and a place for content. I can do this in tables, but literally do not have a clue with CSS. Can someone point me in the right direction? I was thinking I could slice the background into three sections. The top section will be quite high as it will be from the top down to where the background gradient is a constant colour. Then a middle 1px high and a bottom section. Would this work? - Little help with CSS?