473,795 Members | 3,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Layout busted in Safari

6 New Member
This three-column layout is busted in Safari. It's built with a fixed-width container, with three percentage-based columns inside.

http://tinyurl.com/uw8mc

The box-model hack is present to ensure that the columns display correctly in IE.

It works fine in Firefox and IE, but Safari appears to take the layout apart. Since I work on a PC, the only way for me to test the site is with iCapture.

Can anyone provide suggestions on how to make this site work with Safari?

Thanks.
Nov 22 '06 #1
14 2186
drhowarddrfine
7,435 Recognized Expert Expert
You have 333 HTML errors in your code. Once you fix those, then come back.
Nov 22 '06 #2
slobjones
6 New Member
Yes, and most of those "errors" are for tags that are supposedly omitted, but are in fact present.

I leave my original request open for anyone who would like to provide actual assistance, as opposed to unwelcome lectures.
Nov 22 '06 #3
bradvanwick
13 New Member
Hey,

I'd love to help.

If you posted (or linked to) files containing only the rules for structure, then I could most likely fix it fairly quickly.

I just can't be bothered to dig through all of the "non-problem" code.
Nov 22 '06 #4
slobjones
6 New Member
Here's the relevant CSS that defines the site structure. It includes an 800px "content" div that contains a header (topheadline), footer and three columns (navlink, leftcolumn and rightcolumn).

The content displays in the "leftcolumn " div.

Expand|Select|Wrap|Line Numbers
  1. #content {
  2. background-color: rgb(237,237,237);
  3. border-left:1px solid #ddd;
  4. border-right:1px solid #ddd;
  5. border-bottom:2px solid #ddd;
  6. margin:auto;
  7. padding: 1%;
  8. width: 800px;
  9. /* position: absolute; */
  10. /* Start Commented Backslash Hack \*/
  11. * html #content {height: 1%;}
  12. /* Close Commented Backslash Hack */
  13. }
  14.  
  15. #topheadline {
  16. font: normal normal normal 41px Sans-Serif;
  17. margin: 0% 0% 1% 0%;
  18. padding: 4% 0% 1.5% 1%;
  19. color:#F8F8FF;
  20. width: auto%;
  21. background: rgb(48,48,48);
  22. background-image: url(images/smallerbannerborder.jpg);
  23. background-repeat: no-repeat; 
  24. background-position: right center; 
  25. background-position: 99% 50%;
  26. voice-family: "\"}\"";
  27. voice-family: inherit;
  28. width: auto;
  29. /* Start Commented Backslash Hack \*/
  30. * html #topheadline {height: 1%;}
  31. /* Close Commented Backslash Hack */
  32. }
  33.  
  34. #navlink {
  35. float: left;
  36. width: 19%;
  37. margin: 0% 0% 3% 0%;
  38. text-align: justify;
  39. voice-family: "\"}\"";
  40. voice-family: inherit;
  41. width: 19%;
  42. /* Start Commented Backslash Hack \*/
  43. * html #navlink {height: 1%;}
  44. /* Close Commented Backslash Hack */
  45. }
  46.  
  47. #leftcolumn {
  48. background: #F8F8FF;
  49. float: left;
  50. width: 46%;
  51. border-left:1px solid #ddd;
  52. border-right:1px solid #ddd;
  53. border-bottom:2px solid #ddd;
  54. margin: 0% 0% 3% 1%;
  55. text-align: left;
  56. voice-family: "\"}\"";
  57. voice-family: inherit;
  58. width: 45%;
  59. /* Start Commented Backslash Hack \*/
  60. * html #leftcolumn {height: 1%;}
  61. /* Close Commented Backslash Hack */
  62. }
  63.  
  64. #rightcolumn {
  65. float: left;
  66. width: 32%;
  67. margin: 0% 0% 3% 1%;
  68. text-align: left;
  69. voice-family: "\"}\"";
  70. voice-family: inherit;
  71. width: 31%;
  72. /* Start Commented Backslash Hack \*/
  73. * html #rightcolumn {height: 1%;}
  74. /* Close Commented Backslash Hack */
  75. }
  76.  
  77. #footer {
  78. clear: both;
  79. text-align: center;
  80. width: auto;
  81. font-size: 11px; 
  82. voice-family: "\"}\"";
  83. voice-family: inherit;
  84. width: auto;
  85. /* Start Commented Backslash Hack \*/
  86. * html #footer {height: 1%;}
  87. /* Close Commented Backslash Hack */
  88. }
  89.  
  90.  
Nov 22 '06 #5
bradvanwick
13 New Member
Here's the relevant CSS that defines the site structure. It includes...
Ok great. I took a quick look at it.

You'll want to move all the "Backslash Hacks" outside of the curly braces.

Example:

CSS as it is:

Expand|Select|Wrap|Line Numbers
  1. #rightcolumn {
  2. float: left;
  3. width: 32%;
  4. margin: 0% 0% 3% 1%;
  5. text-align: left;
  6. voice-family: "\"}\"";
  7. voice-family: inherit;
  8. width: 31%;
  9. /* Start Commented Backslash Hack \*/
  10. * html #rightcolumn {height: 1%;}
  11. /* Close Commented Backslash Hack */
  12. }
After the fix:

Expand|Select|Wrap|Line Numbers
  1. #rightcolumn {
  2. float: left;
  3. width: 32%;
  4. margin: 0% 0% 3% 1%;
  5. text-align: left;
  6. voice-family: "\"}\"";
  7. voice-family: inherit;
  8. width: 31%;
  9. }
  10.  
  11. /* Start Commented Backslash Hack \*/
  12. * html #rightcolumn {height: 1%;}
  13. /* Close Commented Backslash Hack */
This doesn't mean it will look right (I didn't check -- I don't have time tonight). But it does fix the layout problem.

Hope this clears it up. Just reply if it doesn't.
Nov 23 '06 #6
drhowarddrfine
7,435 Recognized Expert Expert
Why we won't help you.
Nov 23 '06 #7
slobjones
6 New Member
Thanks for the suggestion, Brad. The Commented Backslash Hack is the problem, as I can see by checking the result in iCapture.

It doesn't help matters that at this point, I can't remember why I used the hack. I've killed every instance of it, except in the middle column (the div labeled "leftcolumn ").

Unfortunately, though, when I remove the hack from inside the curly brackets in the leftcolumn div, the layout breaks in IE and Firefox. Again, I don't know why this occurs.

Do you see anything else I can change in this layout to prevent it from breaking?
Nov 23 '06 #8
bradvanwick
13 New Member
I won't be able to check it out until after Thanksgiving.

In the meantime, you may want to consider eliminating all hacks from the CSS -- it may not be needed...just a thought.

Happy holidays and I'll follow up on this in two days.

Cheers.
Nov 23 '06 #9
steven
143 New Member
I completely agree with drhowarddrfine (nice article by the way).

You can't expect help when your code is a complete shambles. 300+ errors is madness!! Trying to debug that code and find your problem could be a mammoth task, with so many issues that need resolving first. As the article that was posted above states, it's only fair that you should be considerate enough to at least code properly before asking for help. If your code is completely invalid, then of course you will run into problems. Sigh....
Nov 23 '06 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

39
5688
by: Zak McGregor | last post by:
Hi all Are there any good solutions to aligning form field names and input boxes without resorting to tables? I am struggling to do this nicely at the moment. Thanks Ciao Zak
4
1543
by: nevenuf24 | last post by:
I've tried this site in IE6, IE7, Netscape 7.1, Firefox 1.5 ...works fine in all of those. But Safari 1.1 (I think) is going to be the death of me. I do not understand why my text boxes defined by divs in the CSS are positioning way out of whack. Here's the site: http://aec.ifas.ufl.edu/step/test_rust.html Here's the CSS: http://aec.ifas.ufl.edu/step/basics2_rust.css The div that defines the text box is #text and #textend. I've tried...
26
2597
by: mark | last post by:
The idea of this is very simle. The site is 800px wide and sits in the middle of the browser window, on either side of the site I want a different background image aligned against it. If I were doing this with table based layout the code would be as follows: <head> <style type="text/css"> #bgleft { background: url(left_half_circle.gif) right top repeat-y;
3
3534
by: Rich.Hephner | last post by:
Hi, I'm new to this group, but in need of some help with a css based two column layout. The layout consists of a short left nav and a content section. The problem is that in IE, the content is shifted approx. 2 pixels to the right where the left nav floats next to it. This shouldn't be and isn't in FF.
1
2471
by: gatorade | last post by:
Drop Down list in a form is breaking layout of the page in FireFox. Here is the page in question: http://www.redchip.com/visibility/RCinstitutional-Requestinfo.asp The layout is simply two floating div's in a container div. Everything looks fine before I put the dropdown list in the form, but once it is in,
3
2195
by: leebridgewater | last post by:
Hi all, I have put together our own web site, its only small so I decided after reading up on CSS web design to do the site myself. The site looks good in IE7 but when you use IE6 the green and red box buttons on the right shift down to the bottom of the page instead of being at the right. Also, in Safari the web site appears ro move down by an inch which results in the horizontal tiled background being out of place with the rest of the...
9
8145
by: Eric Lindsay | last post by:
How do you provide a consistent gradient fill as a background in a liquid layout? If I make a gradient fill image say 1000 pixels wide (and repeat it down the page) to suit a typical computer display, then only a small portion of the gradient will show if the viewpoint is a smaller PDA or phone display. On the other hand, if viewed full screen on a 1920 pixel wide display, I would run out of gradient on one or both sides of the page....
53
4140
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in javascript object and that's all. No need to know CSS hacks, no need to clutter your html with tables. http://www.bravelayout.scarabeo.biz/Quickstart
3
1142
by: Andy B | last post by:
I am creating a CSS layout and need to test it with different browsers. I have the framework for the layout done with contrasting colors for each section. Can anybody if possible, go to www.test.eternityrecords.org/index2.aspx and look at the design? Tested browsers need to be Safari 3 +, IE5+ including IE8 and Firefox 2+. After you go to the page, send your comments about whether the layout looks good or not and what's wrong with it along...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.