Jump to content

Recommended Posts

Hi,

Well, my issue is not exactly related to PHP, but more of CSS... but i haven't got any answer from other forums on this so finally i decided to put it here as this is the forum from where i got quick response in the past....

 

My code is simple which tries to apply dotted line to the bottom of a CSS box.

 

h2 {
border-bottom:1px dotted #666666;
clear:both;
color:#C76C00;
padding-bottom:3px;
text-transform:uppercase;
}

 

This works fine with Firefox and dotted line looks good, but while seeing in IE6, dotted line looks ugly.... dots are larger in size.....

 

can anyone have idea to resolve this issue....

 

i am not sure whether this question has been asked in past, but as a new joiner to this forum, i would like to have some one to reply....

 

quick response will be appreciated...

 

Thanks in advance...!!

Link to comment
https://forums.phpfreaks.com/topic/51643-dotted-line-issue-with-firefox-vs-ie6/
Share on other sites

If you'll notice closely, there is a slight difference in rendering between FF and IE for that dotted border. On the site you cited, there is a color difference between FF and IE. There is some sort of fudging going on via a CSS hack or JS somewhere. IE renders "dotted" borders as "dashed," so you'll need to use a repeating background image in IE to achieve the same effect.

 

Here is an article that sums it up for you.

Well, to place image is one of the option, but i want to know the solution without it....

 

There is not a CSS solution to get IE to use the dotted border.

 

http://www.webdevout.net/browser-support-css#css2propsbasic

 

Search for border-style on the page. You'll notice that IE definitively displays a 1px wide dashed border in place of dotted.

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.