|
|
|
|
![]() ![]() |
Aug 20 2007, 09:37 AM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 20 Joined: 16-August 07 Member No.: 48,248 |
Am using css for designing my sites in that i had a problem while design css for iexplore it show good in iexplorer and the same design view differently in firefox what should i do to avoid such difference.
|
|
|
|
Aug 20 2007, 09:54 AM
Post
#2
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 67 Joined: 13-January 07 From: New Delhi Member No.: 37,091 |
Well at first you should make sure that you are designing css according to w3c standards. Your css if designed acc. to standards then it should wokr both in IE and Firefox. You can always validate your css online at www.w3c.com. Find out the problems there and correct thenm accordingly.
General problems that occurs are with the type of property defined like id or a class. Double check the code you may have missplled it. Have you used '.' symbole for custom classes? This could also be a problem. And yes always design in a step by step manner. Define one property and check it on all browsers. This makes debugging very very easy. If you still having problems then do as. |
|
|
|
Aug 20 2007, 10:59 AM
Post
#3
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 20 Joined: 16-August 07 Member No.: 48,248 |
Thanks for ur suggestion i defined the custom class and used '.' for that but the error is about the property.
i.e., i am using box model when i try to set the padding and margin property for a box(DIV) that is inside another box(DIV). Firefox shows it correctly, but in case of Iexplorer it adds the two padding and margin in to a single padding eg:- CODE .rightsubcontent { padding-left:20px; float:right; } .leftsubcontent { padding-right:20px; float:right; } this code which i used in firefox it make 40px padding between two DIV But the same code in Iexplore it make only 20px padding between two DIV |
|
|
|
Aug 20 2007, 03:02 PM
Post
#4
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,882 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Hard to say what the problem might be, exactly, without seeing your code.
Please post a link to the page or post the html and css here inside "code" tags. If they are larger files, use the "codebox" bbcodes instead. Or you can try search:IE border collapse. Or you can add this to your css: CODE border-collapse: collapse; .Also, make sure you have a Document Type Declaration at the first line of your code which places IE in Standards Compliance Mode and not Quirks Mode. You can get the correct DTD from the w3c site, or, again, search:DTD IE Standards mode. For comparison of how each Browser handles the different DTD's, check here. |
|
|
|
Aug 20 2007, 04:51 PM
Post
#5
|
|
|
Trap Grand Marshal Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,300 Joined: 11-January 06 From: Chennai, India Member No.: 16,932 |
Design Sites for Internet Explorer 7, then your site will look 95% the same in all other browsers like Firefox and Opera.
You can add an special style sheet for IE6 and below using the IE conditional tags. |
|
|
|
Aug 20 2007, 10:13 PM
Post
#6
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 67 Joined: 13-January 07 From: New Delhi Member No.: 37,091 |
Well I think that you should also define the border size for each class you want to use as a box. May be that can help. Second thing you can do is try renaming it as n id rather than a class.
I would like to rewiev the source code of your file. I can really help after that only! rest you will recieve guesses from every body! I would recommend you to use "simplecss" for designing .css files. it's free and very small in size. Google for it. |
|
|
|
Aug 21 2007, 08:16 AM
Post
#7
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 20 Joined: 16-August 07 Member No.: 48,248 |
Thanks for ur ideas i solved that problem and i need some tricks and tips or creating css....Guys who having ideas please share with me and get idea from other also
|
|
|
|
Aug 21 2007, 09:37 AM
Post
#8
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 20-August 07 Member No.: 48,497 |
it depends on what program you're using. if your using dreamweaver mx 2004 or later, it's simple. check your right side panel and you will find access to your css file. Go to >Design Panel>CSS files. here, you will find each css style definition. to have more control, you must name each css definition or div. if you can't find it immediately, go to Text>CSS Styles>Manage site> here you can find the different divs so you can edit selected divs (depending on what you've named them). for more help, go to >Help>Using Dreamweaver or >Dreamweaver Help Support Center. These links will answer any questions you may have. If these don't work (u can't get online) use>Help> Getting Started Tutorials (without going online).
Sincerely, Shah Boogie |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|