Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Different effect of coding in browsers
Old 04-18-2011, 03:38 AM Different effect of coding in browsers
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
Is there any difference in the effect of CSS coding in different browser?

While working on CSS code, I noticed that the same code had a different effect. In Chrome and Opera the effect is fine, but in Firefox It's showing the image with 1px margin.
__________________
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam
asmalik12 is offline
Reply With Quote
View Public Profile Visit asmalik12's homepage!
 
 
Register now for full access!
Old 04-18-2011, 07:05 AM Re: Different effect of coding in browsers
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Is there any difference in the effect of CSS coding in different browser?
Good Heavens! Who would have thought!? </mode type="fake surprise">

C'mon, probably a good fifty percent of all question asked about CSS are regarding browser differences.

However -> Have a read at this
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-18-2011, 10:20 AM Re: Different effect of coding in browsers
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
You've answered in that thread that no would notice about it, but that isn't in my case.

Look at it yourself:

In Firefox:


In Chrome:


Also, In Chrome & Firefox, the div sections weren't working until I added float: left; to one of it.
__________________
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam

Last edited by asmalik12; 04-18-2011 at 10:23 AM..
asmalik12 is offline
Reply With Quote
View Public Profile Visit asmalik12's homepage!
 
Old 04-18-2011, 02:44 PM Re: Different effect of coding in browsers
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
You've answered in that thread that no would notice about it, but that isn't in my case.
Why isn't it?

People don't open a page in a different browser "just to see if it is different".
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-23-2011, 12:55 PM Re: Different effect of coding in browsers
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
Yep, I agree. But what's happening with me in Internet Explorer is really nasty..

And, Internet Explorer is _____

Few days back, I made some changes to

Code:
/* ================================================================ 
     HEADER
=================================================================== */

#header {
	width: 982px;
	height: 184px;
	color: #132C08;
	font-size: 10px;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	}

#header p {
	font-size: 10px;
	font-family: Verdana;
        color: #132C08;
	font-weight: bolder;
        padding: 0px;
        margin: 0px 0px 5px 0px;
}
	
.headerleft {
	width: 395px;
	float: left;
	font-size: 14px;
        clear: left;
	margin: 0px;
	padding: 0px;
	}

.headerright {
	width: 586px;
	float: right;
	margin: 0px;
	padding: 23px 0px 0px 0px;
	font-weight: bolder;
	}

.headerleft2 {
	width: 734px;
	float: left;
	font-size: 14px;
	margin: 6px 0px 0px 6px;
	padding: 0px;
	}
	
.headerleft2 a img {
	border: none;
	margin: 0px;
	padding: 0px;
	}

.headerright2 {
	width: 225px;
	float: right;
	margin: 6px 4px 0px 0px;
	padding: 0px 0px 0px 0px;
	font-weight: bold;
	}
	
.headerright2 a img {
	border: none;
	margin: 0px 0px 3px 0px;
	padding: 0px;
	border: 1px solid #FFFFFF;
	}
to

Code:
/* ================================================================ 
     HEADER
=================================================================== */

#header {
	width: 982px;
	height: 184px;
	color: #132C08;
	font-size: 10px;
	overflow: hidden;
	margin: 0;
	padding: 0px;
        align:center;
	}

#header p {
	font-size: 10px;
	font-family: Verdana;
        color: #132C08;
	font-weight: bolder;
        padding: 0px;
        margin: 0px 0px 5px 0px;
}
	
.headerLeft {
	width: 395px;
	float: left;
	font-size: 14px;
        clear: left;
	margin: 0px;
	padding: 0px;
	}

.headerCenter {
	width: 275px;
	float: left;
	margin: 0px;
	padding: 25px 0px 0px 0px;
	font-weight: bolder;
	}

.headerRight {
        background: #FFFFFF url(images/searchBKG.png) no-repeat;
	width: 301px;
	float: right;
        font-size: 11px;
        font-family: "Tahoma", "Geneva", sans-serif
        color: #c9d7ab;
        padding: 5px 0px 5px 3px;
        margin: 28px 0px 10px 0px;  
	}

.headerleft2 {
	width: 734px;
	float: left;
	font-size: 14px;
	margin: 2px 0px 0px 6px;
	padding: 0px;
	}
	
.headerleft2 a img {
	border: none;
	margin: 0px;
	padding: 0px;
	}

.headerright2 {
	width: 225px;
	float: right;
	margin: 2px 4px 0px 0px;
	padding: 0px 0px 0px 0px;
	font-weight: bold;
	}
	
.headerright2 a img {
	border: none;
	margin: 0px 0px 3px 0px;
	padding: 0px;
	border: 1px solid #FFFFFF;
	}
It's aligned the header to left. Not only the header, but the whole pages. Only in IE; working fine in all other browsers. FF, Chrome and Opera
__________________
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam

Last edited by asmalik12; 04-23-2011 at 12:56 PM..
asmalik12 is offline
Reply With Quote
View Public Profile Visit asmalik12's homepage!
 
Old 04-23-2011, 02:10 PM Re: Different effect of coding in browsers
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Use a valid DTD, don't use deprecated align attributes and properties.

And -> Stickied thread

And if we don't get a link to the page how can we find out what the problem is?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-25-2011, 05:09 AM Re: Different effect of coding in browsers
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
I was already going through it , but Thnx for the info.

It's localhost. Can I share screenshots here?

What does DTD stand for?
__________________
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam
asmalik12 is offline
Reply With Quote
View Public Profile Visit asmalik12's homepage!
 
Old 04-25-2011, 05:20 AM Re: Different effect of coding in browsers
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
DTD = Document Type Declaration, or DOCTYPE.

For the most part I use a HTML 5 DOCTYPE with XHTML strict syntax, also valid under that declaration.

And as Chris said, don't use align attributes in your HTML elements; use CSS for your styling and HTML solely for markup. The overall intent of that separation when it was made the standard is to keep your code cleaner, though there are other reasons as well.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-29-2011, 02:54 AM Re: Different effect of coding in browsers
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
Finally solved! I'm not satisfied with it !

Changed

Code:
margin: 0px auto;
to

Code:
margin: 0px 0 0 150px;
After going through this..

Is there any other way to do it? This is only in IE 9, I don't know how to check for other IEs.
__________________
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam
asmalik12 is offline
Reply With Quote
View Public Profile Visit asmalik12's homepage!
 
Old 05-04-2011, 08:37 PM Re: Different effect of coding in browsers
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
IE Tester - http://www.my-debugbar.com/wiki/IETester/HomePage
Allows you to see what's up in IE 5.5 - 9
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Different effect of coding in browsers
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.17192 seconds with 12 queries