Jump to content

Outline out of place


soltek

Recommended Posts

Hello, I gave my div a regular border and outline to give it a better edge, but in Firefox the outline is a couple of pixels away from the div.

Any idea?

 

This is my CSS code:

.header {
position: absolute;
z-index: 999;
height: 50px;
width: 100%;
border-bottom: 1px solid #4f4e4e;
outline: 1px solid #252525;
background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0, rgb(34,34,34)),
    color-stop(1, rgb(71,71,71))
);
background-image: -moz-linear-gradient(
    center bottom,
    rgb(34,34,34) 0%,
    rgb(71,71,71) 100%
);
-webkit-box-shadow: 0px 3px 5px #162631;
-moz-box-shadow: 0px 3px 5px #162631;
box-shadow: 0px 4px 5px #2e3235;
margin-bottom: 0;
}

 

 

Link to comment
Share on other sites

there is not as far as i know. but you could do the opposite.

 

I guess so, but the outline works right on everthing but Firefox and I'd like to keep it on all other browsers. It makes a nice edge when used with border.

Probably the solution will be using php conditional statements and add the class directly into the pages when the browser detected != mozilla.

 

Thank you for your time and help, cssfreakie

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.