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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
wierd alignment in firefox and in explorer!
Old 09-07-2005, 12:03 PM wierd alignment in firefox and in explorer!
Average Talker

Posts: 20
Trades: 0
http://www.royalcraftsman.com/index2.html
why do in both browsers they look a little different and both are not aligned right?
dpcamp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-08-2005, 11:01 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
One browser handles css better than the other, you decide which one.

Ibbo
__________________

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

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

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

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

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 09-12-2005, 09:57 AM
Average Talker

Posts: 20
Trades: 0
well both in both browsers theres something wrong with the alignment, i was just wondering if there was something wrong with my code.
dpcamp is offline
Reply With Quote
View Public Profile
 
Old 09-12-2005, 10:12 AM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
If you want your .parent div aligned right, then it is your code. You're confusing the browsers:

Code:
div.parent {
	background: url(images/index_26.gif) bottom left no-repeat;
	position: absolute;
	width: 792px;
	height: 824px;
	border: solid #000000 1px;
	background-color: #ffffff;
	text-align: left;
	left: 10%;    <------------Get rid of this
	right: 10%;  <-------------Leave this
	top: 0px;
}
If you're using absolute positioning, you cannot define both left and right position properties. Define top and right.

If you want it centered, get rid of the absolute positioning completely:

Code:
div.parent {
	background: url(images/index_26.gif) bottom left no-repeat;
	width: 792px;
	height: 824px;
	margin-left: auto;   <----------add this
	margin-right: auto;   <---------add this
	border: solid #000000 1px;
	background-color: #ffffff;
	text-align: left;
}
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to wierd alignment in firefox and in explorer!
 

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 0.15715 seconds with 12 queries