CSS - Safari And Overflow Property
Safari does not recognize the CSS property overflow.
Does anyone have a workaround for this? I have been made aware of this bug just today, Safari does not handle this gracefully, it actually renders the div very very poorly, destroying it really. I would remove the overflow element but i need it. Similar Tutorials<div id="whatever"><img src="..." /></div> div#whatever { overflow: hidden; background-color: gray; } div#whatever img{ float:right; } When I set overflow: visible; the image is not properly wrapped within the div. When I set overflow: hidden; the image is properly contained within the div. (you can see with gray background) My question is, w3schools.com says that overflow property visible - show the content even if it overflows hidden - hide the part of the content that overflows With those definitions, I should be seeing the image chopped by div and don't even see it at all? Hi, I have faced a strange issue with the CSS overflow property while using nested DIVs.The DIV with class main has the DIV main-1a as its child which in turn has the DIV with class main-1a-child as its child. As the height of main is not fixed, so it is supposed to increase with main-1a and main-1a-child. But in Mozila FireFox, the height of main is not getting increased with the child DIVs. When the overflow property is set to hidden in main, then only the height of main gets increased with its childs. The issue is fine in IE6 regardless of the overflow property. Any help/explanation in this regard will be very helpful. <html> <head> <title>My Page</title> <style type="text/css"> .main { position:relative; width:800px; display:block; border:1px solid #000000; margin:auto; padding:10px 10px 10px 10px; background:#BABB99; height:100%; overflow:hidden; } .main-1a { width:780px; float:left; background:#FFFFFF; border:1px solid #FF0000; padding:10px 10px 10px 10px; } .main-1a-child { width:760px; float:left; border:1px solid #000000; padding:10px 10px 10px 10px; background:#BABB99; } </style> </head> <body> <div class="main"> <div class="main-1a"> <div class="main-1a-child"> <p>text of div1 a2</p> <p>snkjkjsd</p> <p>snkjkjsd</p> <p>snkjkjsd</p> </div> </div> </div> </body> </html> Hi Could someone tell me why the content is not showing in Netscape 7 please This is the site http://www.hardingscatering.co.uk/06/index.htm I have put an overflow property on the container div, so FF can show white as the bground colour. But when viewed in Netscape the content is not there and on other pages a scroll bar appears. I always have trouble with this, and would really like to know what I am doing wrong. Thanks for any help. Anyone know of a good way to break up a long word from an element with a certain width? Say I have a word like wordddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd, I'd want it to show up properly. Here's the best I've come up with: Code: <html> <head> <style type="text/css"> div { background-color:#00FFFF; width:150px; overflow: hidden; } </style> </head> <body> <div> Longworddddddddddddddddddddddddddddddddddd </div> </body> </html> As you see, just cutting off the word isn't really ideal. Is there a way to auto-break up long words or something? I have a problem with a page on my website. Some of the text on the bottom of the page floats over the text at the top of the page. The only browser where it looks good is IE6. So i dragged my page through de XHTML checker of W3C and debugged until it had no errors. Next I did the same with my css file. I used the browsercam to see if it made any difference. Unfortunately it didn't. It still has the error and i don't know how to fix it or where to start. I hope someone can help me out here. Or maybe someone can tell me where i can find some info about these problems. Browsing this forum, i see that i am not the only one who is having problems with different browsers. You can see here how the webpage looks in IE6 on XP (This is how it should look in other browsers). You can see here how the webpage looks in Safari You can see here how the webpage looks in IE5 on Win 98. This is my css: Quote: body { background-color: White; color: Black; } a { text-decoration: none; font-family: Arial, Helvetica, sans-serif; color: Black; } a:link { color: #F0027F; } a:visited { color: #F0027F; } a:active { color: #F0027F; } a:hover { color: Black; } h1, h2, h3 { margin: 0px; padding: 0px; font-weight: normal; } #container { position:absolute; left:50%; width: 600px; margin-left: -300px; border: 1px solid Black; background-color: White; } } #banner { background-color: White; border-bottom: 1px solid White; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; height: 42px; padding: 0px; text-align: left; width: 310px; padding-left: 0px; } #banner-commentspop { background-color: White; border-bottom: 1px solid Black; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: x-large; font-weight: bold; padding: 0px 10px; text-align: left; width: 310px; } #banner a { color: #FFFFFF; text-decoration: none; } #banner1 { font-size: xx-large; font-weight: bold; width: 600px; padding-left: 0px; border-bottom-width: 1px; border-bottom: 1px dashed #F0027F; color: #F0027F; height: 0px; } #content { background-color: #FFFFFF; color: Black; float: left; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; overflow: hidden; padding: 5px 5px 5px 0px; width: 350px; border-right-width: 10px; border-style: none dashed none none; border-right: 1px dashed #F0027F; margin-right: 20px; padding-bottom: 20px; } #menu { font-family: Arial, Helvetica, sans-serif; margin-bottom :15px; color: Black; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 8pt; overflow: hidden; padding: 0px 0px 0px 10px; background-color: White; border-style: none none none dashed; } .blog { background-color: White; padding: 10px 0px; width: 310px; margin-top: 45px; } .blog p { text-decoration: none; font-family: Arial, Helvetica, sans-serif; } .blog blockquote { } .blog li { } .blog h2 { color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; border-bottom: #000000; text-align: left; font-weight: bold; margin-bottom: 10px; padding: 0px 70px 30px; } .blog h3 { color: #F0027F; font-family: Arial, Helvetica, sans-serif; font-size: 17pt; text-align: left; font-weight: bold; margin-bottom: 0px; } .blog .blogphoto { font-family: Arial, Helvetica, sans-serif; font-size: 8pt; width: 30px; float: left; text-align: left; padding-top: 40px; } .blog .blogbody { font-family: Arial, Helvetica, sans-serif; font-size: 8pt; width: 250px; margin-left: 70px; float: right; margin-top: -155px; } .blog .posted { color: #2CB0CF; display: block; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; line-height: normal; text-align: left; border-bottom: 1px dotted #F0027F; width: 245px; margin-bottom: 40px; font-style: italic; border-bottom-width: 1px; padding-bottom: 10px; } #links { background-color: White; overflow: hidden; width: 190px; margin-left: 0px; border-left: 1px dashed EF1385; padding-left: 30px; border-left-width: 1px; border: 1px dashed #F0027F; border-bottom: 0px; border-right: 0px; border-top-width: 0px; padding-bottom: 700px; padding-top: 30px; } .side, .syndicate, .powered { font-family: Arial, Helvetica, sans-serif; font-size: 8pt; padding: 3px 15px 10px 0px; text-align: left; } .side a { text-decoration: none; color: #F0027F; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: bold; } .side a:link { color: #F0027F; font-weight: bold; } .side a:visited { color: #F0027F; } .side a:active { } .side a:hover { color: Black; } .calendar { line-height: 140%; color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; padding: 2px; text-align: center; margin-bottom: 30px; } .calendar table { padding: 2px; border-collapse: collapse; border: 0px; width: 100%; font-family: Arial, Helvetica, sans-serif; font: 8pt; font-weight: bold; } .calendar caption { color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; border-bottom: 1px solid #999999; text-align: left; font-weight: bold; text-transform: uppercase; padding: 3px; letter-spacing: .3em; } .calendar th { text-align: center; font-weight: normal; } .calendar td { text-align: center; } .sidetitle { border-bottom: 1px solid Black; color: #F0027F; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: bold; letter-spacing: normal; text-transform: uppercase; } .side ul { padding-left: 0px; margin: 0px; margin-bottom: 30px; } .side li { color: #000000; text-align: left; margin-top: 0px; list-style-type: none; } .side img { border: 1px solid Black; float: left; } .photo { text-align: left; float: left; } .link-note { font-family: Arial, Helvetica, sans-serif; font-size: 8pt; text-align: left; padding: 2px; margin-bottom: 15px; } .comments-head { border-bottom: 1px dashed #F0027F; color: #F0027F; font-family: Arial, Helvetica, sans-serif; font-size: 17pt; font-weight: bold; margin-bottom: 10px; text-align: left; margin-left: 70px; } .comments-body { color: Black; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; text-align: left; margin-bottom: 10px; margin-left: 70px; } .comments-body textarea { width: 75%; } .comments-post { border-top: 1px dotted #F0027F; color: #2CB0CF; display: block; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: bold; line-height: normal; padding: 3px; text-align: left; } .extended { font-size: 8pt; font-style: normal; margin-bottom: 1ex; width: 400px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: Black; } I have a div that I have set the overflow property to auto - enabling scroll bars when the content is longer then the fixed size of the div. This doesn't seem to work in Safari, or and older version of Firefox. I could use overflow: scroll, but then there is a scroll bar when the content doesn't overflow. Is there any clever fix for this? Cheers, whiteatom My CSS works in IE and Mozilla but not Netscape or Opera I have a 2 column website, built with 2 relative position DIVs, with overflow set to auto. Because of this, I turned off overflow on the body tag and on the html tag (overflow: hidden;). I didn't want to have 2 scroll bars on the right side of the window. When I first tested this on 4 browsers, IE, Mozilla, Netscape and Opera, it worked great, only having one scroll bar on the right side of the window when the page was longer than the window height. But when I moved to a new host server recently, I discovered that Netscape and Opera stopped working. They now simply give me blank screens. When I remove the "overflow: hidden;" specifications from the body tag and the HTML tag in my CSS file, Netscape and Opera once again display my web pages. However, now I get 2 scrollbars on the right side of all 4 browsers (in IE, the second scrollbar isn't actually there, but the space holder for the scrollbar is there). Is there a cross browser way for doing what I'm trying to do? Or am I faced with detecting the browser type on the server-side, and setting the style sheet appropriately? Here are the related parts of my CSS: /* CSS styles */ BODY { font-family : Verdana, Arial, Helvetica, sans-serif ; font-size : 10pt; background : Black; color : White; margin: 0; padding: 0; border-width: 0; overflow: hidden; } HTML { overflow: hidden; } #LeftNavDIV { position:relative; width:185px; height:100%; float:left; padding:2px 0px 0px 0px; margin:0px 0px 0px 0px; border:1px solid white; overflow:auto; } #ContentDIV { position:relative; height:100%; width:75%; float:right; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px; border:0px dashed #336699; overflow:auto; } Is there such a thing as using an alt property for <img> tag? This would be awfully useful for SEO Question: I have two class below. What I want is when I change the padding-top property value in div.content-full, I also want the padding-top property value in the div.content change to the same value div.content-full { float:left; width:100%; padding-top:10px; margin:0px; } div.content { float:left; width:70%; padding-top:06px; margin:0px; } Can anybody help me out? Hi all, I've got problm in css Listbox properties, I put list box within a normal html .. and there are 3 option to list like this.., 1.name 2.Address of a person 3.Phone no: resident so i give width=80px; in css and it will show the list box width correctly. but drop down part also the same width . so i want to expand the width as when we entered option text width. how can i achieve this ? pls help me......! Prachalitha Thanks for all the continued help/support. . . Makes learning CSS so much easier! Link: www.vairlinecms.com Question: I set the html up like this on purpose to grasp the concept. <p> tags are block level containers. So each new set of <p> tags should equal start on new line. w/the float property holding a value of left, it floats all content to the left. Since each instance of float occurs in its own container...the two different <p> sets should not be affected. In short, the password: paragraph should be on a new line, not both on the same line. There should be no need to clear it because they are in their own containers - which are block level. Where is my logic/understanding of CSS flawed? HTML: Code: <div id="clientLoginBoxBody"> <form action=#"> <br /> <p class="user">Username:</p> <p class="pass">Password:</p> </form> </div> CSS: Code: #clientLoginBoxBody p.user, p.pass { float: left; margin: 0; margin-left: 10px; padding: 0; font-size: 12px; text-align: right; } Hi, i am very new to css and I am confused about the difference between margin-top vs top please help Regards Ltoso I am trying to figure out how I can get this red curve to align to the bottom of the page, while also being able to move up and down with the size of the browser window. http://www.woodrichwebworks.com/psa/psa_comps/bycor/html/redtest.html Any help would be great. I am wondering if there is some way to make a <div> layer automatically expand to the full height of the screen similar to the way that one would use width=100% when talking about the width of a page. I have a layer that I want to extend to the bottom of the page no matter what resolution the user has on their screen. Maybe the layer could just extend all the way until the next layer? Any Ideas? Thanks Jamie Will the -moz property ever become a valid CSS property. when I validate my CSS on w3.org I get errors. I remove all propertys that have a -moz in front of it and it is 100% valid. ALSO ... Is there a way to mask parts of the css from the validator or have a separate CSS file that can be masked from the validator to make it appear to be 100% valid.. Thanks My documentation for css shows that content: url(); works in navigator but not in ie. The info I've got is dated. Does the content property work in the newer ie browsers? This style is use useful or not @property-group title-style() { color: #004080; font-weight: bold; } @property-group standard-vmargins() { margin: 1.33ex 0; } title, subtitle, titleabbrev { display: block; property-group: title-style(); property-group: standard-vmargins(); } This is not support IE... I'm trying to create some links that swap background images when you mouseover them. The non-CSS solution (which looks exactly how I want it to look) is located he http://84.9.221.75/domains/backingt...Musicindex.html My attempt at creating a CSS equivalent of those links is located on this page: http://84.9.221.75/domains/backingt...Musicindex.html I just need some help with the CSS I'm using on the latter page...I read up a little on how to do this, but it's obvious I'm still doing something wrong... I need the buttons and the text inside the buttons to line up and appear like they do in the first URL....can anyone give me some pointers here? Thank you. I'm pretty new to css but now use one css file for all of the formatting of my entire website. The only problem I see with that (I say problem because I can't figure out a way around it) is that all of my hyperlinks throughout the website have only one normal state, hover state, active state and visited state. Is there a way to make more than one hyperlink set of formats? Like if I wanted to make one for each page? I could do something like ahomepage:link, ahomepage:visited, ahomepage:active or something??? Code: a:link, a:visited, a:active { font-size:12px; font-weight:normal; font-family: times; text-decoration:none; color : #000000 } a:hover { font-size:12px; font-weight:normal; font-family: times; text-decoration:underline; color : #000000 } Ok what i want to happen is that when person clicks on a link i want a div to appear/be visible underneath that link. But i want that div to not take any space unless i click on a link. I recently did something similar BUT the div was taking the space but was just hidden. |