Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Web Page Display Problem in Safari
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="neilmarks" data-source="post: 1032878" data-attributes="member: 150125"><p>Hi,</p><p></p><p>The following site is displaying correctly in Firefox, IE, and Chrome, but not in Safari:</p><p></p><p><a href="http://www.3terraces.com" target="_blank">Andalucian Village, Costa Esuri Golf, Costa De La Luz, Spain - 2 Bed Apartment For Rent</a></p><p></p><p>The background should be gray, but is displaying as white in Safari. Does anyone know if there are any hacks that can be addressed directly to Safari (as can be done with IE)?. If not, does anyone have any suggestions as to the cause and solution?. </p><p></p><p>the CSS is as follows. Many thanks for any help that can be provided</p><p></p><p> @charset "utf-8";</p><p> </p><p> body {</p><p> font: 100% Verdana, Arial, Helvetica, sans-serif;</p><p> margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */</p><p> padding: 0;</p><p> text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */</p><p> color: #000000;</p><p> background-color: #CCCCCC;</p><p> </p><p> }</p><p> .oneColFixCtrHdr #container {</p><p> width: 900px; /* the auto margins (in conjunction with a width) center the page */</p><p> border: 2px solid #999;</p><p> text-align: left; /* this overrides the text-align: center on the body element. */</p><p> margin-top: 20px;</p><p> margin-right: auto;</p><p> margin-left: auto;</p><p> background-color: #FFFFFF;</p><p> margin-bottom: 20px;</p><p> }</p><p>#containerShadow {</p><p> /** container shadow GIF removed until debugging **/</p><p> background-repeat: repeat-y;</p><p> width: 940px;</p><p> margin-right: auto;</p><p> margin-left: auto;</p><p>}</p><p></p><p> </p><p> .oneColFixCtrHdr #header {</p><p> padding: 0;</p><p> }</p><p>#navBar {</p><p> margin-bottom: 45px;</p><p>}</p><p></p><p> .oneColFixCtrHdr #header h1 {</p><p> margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */</p><p> padding: 0px; /* using padding instead of margin will allow you to keep the element away from the edges of the div */</p><p> }</p><p> .oneColFixCtrHdr #mainContent {</p><p> background: #FFFFFF;</p><p> margin-bottom: 20px;</p><p> width: 900px;</p><p> padding: 0;</p><p> }</p><p> #mainContent h1 {</p><p> font-family: Tahoma, Geneva, sans-serif;</p><p> font-size: 24px;</p><p> color: #2296AA;</p><p> font-weight: normal;</p><p> text-transform: none;</p><p> text-align: center;</p><p> margin-right: 50px;</p><p> margin-left: 50px;</p><p> }</p><p>#flights {</p><p> margin-left: 115px;</p><p> float:left;</p><p> margin-bottom: 50px;</p><p>}</p><p>#weatherBar {</p><p> float: right;</p><p> margin-right:115px;</p><p>}</p><p>#howToGetHere {</p><p> clear: both;</p><p> width: 400px;</p><p> margin-right: auto;</p><p> margin-left: auto;</p><p> margin-top: 30px;</p><p> margin-bottom: 50px;</p><p> border-top-width: 10px;</p><p> border-right-width: 2px;</p><p> border-bottom-width: 2px;</p><p> border-left-width: 2px;</p><p> border-top-style: solid;</p><p> border-top-color: #8080FF;</p><p> border-right-color: #8080FF;</p><p> border-bottom-color: #8080FF;</p><p> border-left-color: #8080FF;</p><p> border-right-style: solid;</p><p> border-bottom-style: solid;</p><p> border-left-style: solid;</p><p>}</p><p>#carHire {</p><p> margin-top: 8px;</p><p> height: 100px;</p><p>}</p><p>.imgFloatLeft {</p><p> float: left;</p><p> margin-right: 55px;</p><p> margin-left: 50px;</p><p>}</p><p>.carrentallist {</p><p> float: none;</p><p>}</p><p></p><p></p><p></p><p></p><p></p><p>.homePageHeading {</p><p> font-family: Tahoma, Geneva, sans-serif;</p><p> font-size: 24px;</p><p> color: #2296aa;</p><p>}</p><p> #mainContent h2 {</p><p> font-family: Arial, sans-serif, Verdana;</p><p> font-size: 24px;</p><p> color: #2296aa;</p><p> margin-left: 40px;</p><p> text-transform: none;</p><p> margin-bottom: -10px;</p><p> font-weight: normal;</p><p> }</p><p>#mainContent h3 {</p><p> font-family: Arial, Helvetica, sans-serif;</p><p> font-size: 16px;</p><p> color: #666;</p><p> margin-left: 40px;</p><p> margin-bottom: -12px;</p><p>}</p><p>p {</p><p> font-family: Arial, Helvetica, sans-serif;</p><p> font-size: 12px;</p><p> color: #666;</p><p> margin-left: 40px;</p><p> margin-right: 40px;</p><p> text-align: justify;</p><p> }</p><p> </p><p> .oneColFixCtrHdr #footer {</p><p> background-color: #FFF;</p><p> border-top-width: 1px;</p><p> border-right-width: 1px;</p><p> border-bottom-width: 1px;</p><p> border-left-width: 1px;</p><p> border-top-style: solid;</p><p> border-top-color: #DDD;</p><p> border-right-color: #DDD;</p><p> border-bottom-color: #DDD;</p><p> border-left-color: #DDD;</p><p> padding-top: 15px;</p><p> padding-bottom:10px;</p><p> height: auto;</p><p> clear:both;</p><p> text-align: center;</p><p> margin-top: 100px;</p><p> }</p><p> #footer p a {</p><p> color: #FC6;</p><p> font-size: 9px;</p><p> text-transform: lowercase;</p><p> }</p><p> </p><p> .oneColFixCtrHdr #footer p {</p><p> padding: 0px; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */</p><p> font-family: "Century Gothic", Verdana, Arial, sans-serif;</p><p> font-size: 9px;</p><p> color: #CCC;</p><p> margin-top: 0;</p><p> margin-bottom: 0;</p><p> text-align: center;</p><p> }</p><p> .imgMainCentre {</p><p> margin-left: 112px;</p><p> border: 3px solid #CCC;</p><p> margin-top: 10px;</p><p> margin-bottom: 20px;</p><p> background-image: url(../images/mainImgBg.gif);</p><p> background-repeat: no-repeat;</p><p> background-attachment: fixed;</p><p> }</p><p>#mainContent ul li {</p><p> font-size: 12px;</p><p> margin-left: 30px;</p><p> color: #666;</p><p>}</p><p>#mainContent table {</p><p> margin-right: auto;</p><p> margin-left: auto;</p><p> margin-bottom: 20px;</p><p>}</p><p>#mainContent table tr td p {</p><p> text-align: center;</p><p> font-size: 9px;</p><p> margin: -1px;</p><p>}</p><p>.PageHeading {</p><p> font-size: 24px;</p><p> color: #36F;</p><p>}</p><p></p><p>.tdImgShdw {</p><p> background-image: url(file:///D|/Dreamweaver/Property%20Samples/images/GalleryThumbShdw.gif);</p><p> background-repeat: no-repeat;</p><p>}</p><p>#mainContent table tr td img {</p><p> margin-bottom: 3px;</p><p> border: 2px solid #999;</p><p> background-image: none;</p><p> </p><p>}</p><p>#mainContent table tr td img:hover {</p><p> border: 3px solid #FC3;</p><p> position: relative;</p><p> top: -1px;</p><p> right: -1px;</p><p>}</p><p>#rentalRates {</p><p> margin-right: auto;</p><p> margin-left: auto;</p><p> margin-bottom: 10px;</p><p> margin-top: -20px;</p><p>}</p><p>#rentalRates tr td {</p><p> border: 1px solid #999;</p><p> font-size: 12px;</p><p> font-weight: bold;</p><p> padding: 3px 0 3px 3px;</p><p> text-align: center;</p><p>}</p><p>#rentalRatesDIV {</p><p> margin-left: 200px;</p><p> float: left;</p><p> width: 500px;</p><p>}</p><p>* html #rentalRatesDIV {</p><p> display:inline;</p><p> /* removes double float bug from IE */</p><p>}</p><p>#rentalRates caption {</p><p> margin-top: 30px;</p><p> padding-bottom: 10px;</p><p>}</p><p>#rentalRates th {</p><p> background-color: #999;</p><p> border: 1px solid #999;</p><p> text-align: center;</p><p> color: #FFF;</p><p> font-family: Verdana, Geneva, sans-serif;</p><p> font-size: 16px;</p><p>}</p><p>body#home a#homeLink, body#apartment a#apartmentLink, body#area a#areaLink, body#gallery a#galleryLink,body#prices a#pricesLink, body#contact a#contactLink {</p><p> background: #33C;</p><p> font-weight:bold;</p><p>}</p><p></p><p>#flashGallery {</p><p> margin-left: 150px;</p><p> float: none;</p><p> width: 600px;</p><p> margin-bottom: 40px;</p><p>}</p><p>#mainContent h4 {</p><p> font-size: 16px;</p><p> font-style: italic;</p><p> margin-left: 40px;</p><p> color: #03C;</p><p> text-decoration: underline;</p><p> text-transform: uppercase;</p><p> margin-top:30px;</p><p> font-family: "Trajan Pro", Vivaldi, "Trebuchet MS";</p><p>}</p><p>#mainContent p strong a {</p><p>}</p><p>.alignPara {</p><p> width: 650px;</p><p> padding-left: 82px;</p><p>}</p><p>#galleryGolf {</p><p> float: right;</p><p> margin-top: 30px;</p><p> margin-right: 35px;</p><p>}</p></blockquote><p></p>
[QUOTE="neilmarks, post: 1032878, member: 150125"] Hi, The following site is displaying correctly in Firefox, IE, and Chrome, but not in Safari: [url=http://www.3terraces.com]Andalucian Village, Costa Esuri Golf, Costa De La Luz, Spain - 2 Bed Apartment For Rent[/url] The background should be gray, but is displaying as white in Safari. Does anyone know if there are any hacks that can be addressed directly to Safari (as can be done with IE)?. If not, does anyone have any suggestions as to the cause and solution?. the CSS is as follows. Many thanks for any help that can be provided @charset "utf-8"; body { font: 100% Verdana, Arial, Helvetica, sans-serif; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #000000; background-color: #CCCCCC; } .oneColFixCtrHdr #container { width: 900px; /* the auto margins (in conjunction with a width) center the page */ border: 2px solid #999; text-align: left; /* this overrides the text-align: center on the body element. */ margin-top: 20px; margin-right: auto; margin-left: auto; background-color: #FFFFFF; margin-bottom: 20px; } #containerShadow { /** container shadow GIF removed until debugging **/ background-repeat: repeat-y; width: 940px; margin-right: auto; margin-left: auto; } .oneColFixCtrHdr #header { padding: 0; } #navBar { margin-bottom: 45px; } .oneColFixCtrHdr #header h1 { margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */ padding: 0px; /* using padding instead of margin will allow you to keep the element away from the edges of the div */ } .oneColFixCtrHdr #mainContent { background: #FFFFFF; margin-bottom: 20px; width: 900px; padding: 0; } #mainContent h1 { font-family: Tahoma, Geneva, sans-serif; font-size: 24px; color: #2296AA; font-weight: normal; text-transform: none; text-align: center; margin-right: 50px; margin-left: 50px; } #flights { margin-left: 115px; float:left; margin-bottom: 50px; } #weatherBar { float: right; margin-right:115px; } #howToGetHere { clear: both; width: 400px; margin-right: auto; margin-left: auto; margin-top: 30px; margin-bottom: 50px; border-top-width: 10px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-top-color: #8080FF; border-right-color: #8080FF; border-bottom-color: #8080FF; border-left-color: #8080FF; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; } #carHire { margin-top: 8px; height: 100px; } .imgFloatLeft { float: left; margin-right: 55px; margin-left: 50px; } .carrentallist { float: none; } .homePageHeading { font-family: Tahoma, Geneva, sans-serif; font-size: 24px; color: #2296aa; } #mainContent h2 { font-family: Arial, sans-serif, Verdana; font-size: 24px; color: #2296aa; margin-left: 40px; text-transform: none; margin-bottom: -10px; font-weight: normal; } #mainContent h3 { font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: #666; margin-left: 40px; margin-bottom: -12px; } p { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #666; margin-left: 40px; margin-right: 40px; text-align: justify; } .oneColFixCtrHdr #footer { background-color: #FFF; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-top-color: #DDD; border-right-color: #DDD; border-bottom-color: #DDD; border-left-color: #DDD; padding-top: 15px; padding-bottom:10px; height: auto; clear:both; text-align: center; margin-top: 100px; } #footer p a { color: #FC6; font-size: 9px; text-transform: lowercase; } .oneColFixCtrHdr #footer p { padding: 0px; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */ font-family: "Century Gothic", Verdana, Arial, sans-serif; font-size: 9px; color: #CCC; margin-top: 0; margin-bottom: 0; text-align: center; } .imgMainCentre { margin-left: 112px; border: 3px solid #CCC; margin-top: 10px; margin-bottom: 20px; background-image: url(../images/mainImgBg.gif); background-repeat: no-repeat; background-attachment: fixed; } #mainContent ul li { font-size: 12px; margin-left: 30px; color: #666; } #mainContent table { margin-right: auto; margin-left: auto; margin-bottom: 20px; } #mainContent table tr td p { text-align: center; font-size: 9px; margin: -1px; } .PageHeading { font-size: 24px; color: #36F; } .tdImgShdw { background-image: url(file:///D|/Dreamweaver/Property%20Samples/images/GalleryThumbShdw.gif); background-repeat: no-repeat; } #mainContent table tr td img { margin-bottom: 3px; border: 2px solid #999; background-image: none; } #mainContent table tr td img:hover { border: 3px solid #FC3; position: relative; top: -1px; right: -1px; } #rentalRates { margin-right: auto; margin-left: auto; margin-bottom: 10px; margin-top: -20px; } #rentalRates tr td { border: 1px solid #999; font-size: 12px; font-weight: bold; padding: 3px 0 3px 3px; text-align: center; } #rentalRatesDIV { margin-left: 200px; float: left; width: 500px; } * html #rentalRatesDIV { display:inline; /* removes double float bug from IE */ } #rentalRates caption { margin-top: 30px; padding-bottom: 10px; } #rentalRates th { background-color: #999; border: 1px solid #999; text-align: center; color: #FFF; font-family: Verdana, Geneva, sans-serif; font-size: 16px; } body#home a#homeLink, body#apartment a#apartmentLink, body#area a#areaLink, body#gallery a#galleryLink,body#prices a#pricesLink, body#contact a#contactLink { background: #33C; font-weight:bold; } #flashGallery { margin-left: 150px; float: none; width: 600px; margin-bottom: 40px; } #mainContent h4 { font-size: 16px; font-style: italic; margin-left: 40px; color: #03C; text-decoration: underline; text-transform: uppercase; margin-top:30px; font-family: "Trajan Pro", Vivaldi, "Trebuchet MS"; } #mainContent p strong a { } .alignPara { width: 650px; padding-left: 82px; } #galleryGolf { float: right; margin-top: 30px; margin-right: 35px; } [/QUOTE]
Verification
Grass is to green, as mud is to ______?
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Web Page Display Problem in Safari
Top