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.
14 2186
You have 333 HTML errors in your code. Once you fix those, then come back.
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.
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.
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. -
#content {
-
background-color: rgb(237,237,237);
-
border-left:1px solid #ddd;
-
border-right:1px solid #ddd;
-
border-bottom:2px solid #ddd;
-
margin:auto;
-
padding: 1%;
-
width: 800px;
-
/* position: absolute; */
-
/* Start Commented Backslash Hack \*/
-
* html #content {height: 1%;}
-
/* Close Commented Backslash Hack */
-
}
-
-
#topheadline {
-
font: normal normal normal 41px Sans-Serif;
-
margin: 0% 0% 1% 0%;
-
padding: 4% 0% 1.5% 1%;
-
color:#F8F8FF;
-
width: auto%;
-
background: rgb(48,48,48);
-
background-image: url(images/smallerbannerborder.jpg);
-
background-repeat: no-repeat;
-
background-position: right center;
-
background-position: 99% 50%;
-
voice-family: "\"}\"";
-
voice-family: inherit;
-
width: auto;
-
/* Start Commented Backslash Hack \*/
-
* html #topheadline {height: 1%;}
-
/* Close Commented Backslash Hack */
-
}
-
-
#navlink {
-
float: left;
-
width: 19%;
-
margin: 0% 0% 3% 0%;
-
text-align: justify;
-
voice-family: "\"}\"";
-
voice-family: inherit;
-
width: 19%;
-
/* Start Commented Backslash Hack \*/
-
* html #navlink {height: 1%;}
-
/* Close Commented Backslash Hack */
-
}
-
-
#leftcolumn {
-
background: #F8F8FF;
-
float: left;
-
width: 46%;
-
border-left:1px solid #ddd;
-
border-right:1px solid #ddd;
-
border-bottom:2px solid #ddd;
-
margin: 0% 0% 3% 1%;
-
text-align: left;
-
voice-family: "\"}\"";
-
voice-family: inherit;
-
width: 45%;
-
/* Start Commented Backslash Hack \*/
-
* html #leftcolumn {height: 1%;}
-
/* Close Commented Backslash Hack */
-
}
-
-
#rightcolumn {
-
float: left;
-
width: 32%;
-
margin: 0% 0% 3% 1%;
-
text-align: left;
-
voice-family: "\"}\"";
-
voice-family: inherit;
-
width: 31%;
-
/* Start Commented Backslash Hack \*/
-
* html #rightcolumn {height: 1%;}
-
/* Close Commented Backslash Hack */
-
}
-
-
#footer {
-
clear: both;
-
text-align: center;
-
width: auto;
-
font-size: 11px;
-
voice-family: "\"}\"";
-
voice-family: inherit;
-
width: auto;
-
/* Start Commented Backslash Hack \*/
-
* html #footer {height: 1%;}
-
/* Close Commented Backslash Hack */
-
}
-
-
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: - #rightcolumn {
-
float: left;
-
width: 32%;
-
margin: 0% 0% 3% 1%;
-
text-align: left;
-
voice-family: "\"}\"";
-
voice-family: inherit;
-
width: 31%;
-
/* Start Commented Backslash Hack \*/
-
* html #rightcolumn {height: 1%;}
-
/* Close Commented Backslash Hack */
-
}
After the fix: - #rightcolumn {
-
float: left;
-
width: 32%;
-
margin: 0% 0% 3% 1%;
-
text-align: left;
-
voice-family: "\"}\"";
-
voice-family: inherit;
-
width: 31%;
-
}
-
-
/* Start Commented Backslash Hack \*/
-
* html #rightcolumn {height: 1%;}
-
/* 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.
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?
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.
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....
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
|
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...
|
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;
|
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.
|
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,
| |
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...
|
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....
|
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
|
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...
|
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...
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |