473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

CSS Border Problem In Safari...Help?

i'm trying to put a css border around this box, and it's not working
properly in safari and firefox (works fine in IE). can anyone help me
fix this? here is a grab so you can see the problem:

http://www.thebrotherkite.com/grab.jpg

and here is the css code:

#container
{
position:absolute;
margin: auto 0 auto;
top:306px;
clip:rect(0,370,247,0);
height:247px;
width:370px;
border-top: 1px solid #555555;
border-right: 1px solid #555555;
border-bottom: 1px solid #555555;
border-left: 1px solid #555555;
}

.msg
{
padding-top: 2em;
padding-bottom: 2em;
margin: auto 0 auto;
}

html
{
min-height: 100%;
margin-bottom: 1px;
}

body
{
margin-top:50px;
margin-left:0px;
margin-bottom:0px;
background-color:#000000;
}

div
{ font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #FFFFFF;
border-style: none
}

a:link {
color:#CCCCCC;
background-color:transparent;
}

a:active {
color:#FFFFFF
background-color:transparent;
}

a:visited {
color:#CCCCCC
background-color:transparent;
}

a:hover {
color: #FFFFFF;
background-color:transparent;
}

Aug 4 '06 #1
2 4993
Once upon a time *j************@gmail.com* wrote:
i'm trying to put a css border around this box, and it's not working
properly in safari and firefox (works fine in IE). can anyone help me
fix this? here is a grab so you can see the problem:

http://www.thebrotherkite.com/grab.jpg
Don't give an image to look at, the URL to the actual page is a lot
better.

One question, what's the doctype of the page? The clip:rect maybe
don't work in Quirks mode.

--
/Arne

Proud User of SeaMonkey. Get your free copy:
http://www.mozilla.org/projects/seamonkey/
Aug 4 '06 #2
<jo***********@gmail.comwrote:
i'm trying to put a css border around this box, and it's not working
properly in safari and firefox
Why do you think that it doesn't work in Safari/Firefox?
I think it is just working fine in these browsers and only IE is doing
it wrong.

Please note that the border is not inside the content area, so when you
set the width of the content area to 370px the whole box including the
border will have a width of 372px. The values of the clipping rectangle
are offsets relative to the "border edges" (content area including the
browsers), so your clipping rectangle will not cover the last 2 pixels
to the right and bottom, and therefore the right and bottom borders are
not visible.

BTW: "clip:rect(0,370,247,0);" is not valid, the unit ("px" is missing
here). This must be clip:rect(0,370px,247px,0);

WHy do you add the clip rule at all? Probably you can remove this rule
without and side effects.

--
Alexander
Aug 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Steel | last post by:
hi at all, can I include into a css file some frame and frameset propertyes like border=0? How? thank in advance Steel
3
by: Wally Sanford | last post by:
This page, http://home.earthlink.net/~wallysanford/access.html, shows a border just above the bottom icons, as it should, in IE6, but not Firefox. Strangely, the page from which it was derived,...
11
by: muraii | last post by:
Hi all, I've trolled through Google, a little of evolt, css-discuss archives, and sent the list a request, all to no avail. I consulted positioniseverything.net and quirksmode.org. The issue I...
4
by: Paul W | last post by:
Hi - can someone point me to info on the issues/resolutions of supporting the safari browser? To help me understand, if I was developing pages in say FrontPage, what attributes would I set for...
3
by: David Stone | last post by:
I'm trying to apply a border to a Flash learning object, which is loaded into a page via <object>. I'm trying to use a style to put a black border around the Flash object. ...
1
by: biegel | last post by:
I'm having a strange problem with one browser: Firefox 1.5 on Mac OS X. Surprisingly Safari works perfectly (it's usually the odd one out in my experience). Here's the situation: I've got a...
3
by: Brad | last post by:
I have an aspx page that is sending pdf files to client browsers: it uses a filestream to read the pdf file and response.binarywrite to send content to the browser. This has worked great for years...
15
by: GinnTech | last post by:
I have a site that works perfectly in IE6 IE7 FF2 FF3 but not in the latest Safari. Here is the issue. I am attempting to call functions within a flash object. When trying to attempt to...
3
by: seegoon | last post by:
Hi guys. I'd like to use an image as my border on just the right side of a div, to create an arrow shape on a 'continue' link. I've created the image to use and tried to code it myself, but failed...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.