Image positioning and differences in IE/FF

This is a discussion on "Image positioning and differences in IE/FF" within the Web Page Design section. This forum, and the thread "Image positioning and differences in IE/FF are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 21st, 2007, 14:13
Junior Member
Join Date: Jun 2007
Location: Florida
Age: 31
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Image positioning and differences in IE/FF

Hello everyone,
I'm having a bit of a problem with an image positioning and then page looking different in IE/FF. First off, the image on this page www.mommyandmimi.com/123456.htm I would like to have centered in that right area. The size is correct, I just can't get it centered. Next, text jumps way over when opened in Firefox, its fine in IE. If anybody could give me some insight I would love it. Thanks, and here is the CSS code:
Code: Select all
body {
 margin: 0px;
 background-color: #06182A;
 font-family: "Courier New", Courier, monospace;
}
body, td, div, p {
 /* IE fix */
 font-size: 12px;
}
#page {
 width: 890px;
 margin: 0 auto 0 auto;
}
tr.odd {
 background-color: #DDDDDD;
}
tr.even { }
td {
 vertical-align: top;
}
td.number, th.number {
 text-align: right;
}
th {
 text-align: left;
 vertical-align: bottom;
}
a {
 color: #CC6600;
 text-decoration: none;
 font-weight: bold;
}
a:visited {
 color: #993300; /* Slightly darker than unvisited */
}
a:hover {
 text-decoration: underline;
}
h1 {
 margin-top: 10px;
 margin-bottom: 5px;
 font-size: 18px;
}
h2 {
 margin-top: 7px;
 margin-bottom: 2px;
 font-size: 14px;
}
p {
 margin-top: 5px;
 margin-bottom: 5px;
}
form {
 /* IE fix */
 margin: 0px;
}
img {
 border: 0px;
}
ul {
 margin-top: 0px;
 padding-top: 0px;
}
#menu {
 background: url(../images/seam.gif);
 background-repeat: repeat-x;
 height: 30px;
 padding-top: 10px;
 padding-bottom: 10px;
}
#menu #logo {
 float:left;
}
#menu #items {
 margin-left: 15px;
 padding-top: 3px;
 float: right;
}
#menu img.divider, #footer img.divider {
 margin-left: 3px;
 margin-right: 3px;
}
.submenu {
 padding-top: 10px;
 padding-left: 15px;
 letter-spacing: -1px;
}
.submenu a {
 margin-right: 0px;
 margin-left: 0px;
 font-size: 11px;
}
.content {
 /* The main content area */
 background-color: white;
}
.content-box {
 /* Used around the left column of the content to create a scroll if necessary */
 width: 410px;
 height: 435px;
 margin-left: 15px;
 overflow: auto;
}
.content-side {
 height: 440px;
 margin-top: 10px;
 padding-right: 10px;
 float: right;
}
.small {
 font-size: 90%;
}
.text {
 margin-top:    2px;
 margin-bottom: 2px;
 line-height:   150%;
}
.error {
 color: #CC0000;
}
.right-align {
 float: right;
}
.left-align {
 float: left;
}
#footer {
 padding-top: 2px;
/* padding-left: 10px;
 padding-right: 10px;*/
}
.movie-info {
 margin-top: 15px;
}
.movie-poster {
 float: left;
 margin-right: 5px;
 border: 1px solid black;
}
Reply With Quote

  #2 (permalink)  
Old Sep 21st, 2007, 15:52
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Image positioning and differences in IE/FF

trying putting in
* {margin: 0; padding: 0}
at the top
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #3 (permalink)  
Old Sep 21st, 2007, 16:14
Junior Member
Join Date: Jun 2007
Location: Florida
Age: 31
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by alexgeek View Post
trying putting in
* {margin: 0; padding: 0}
at the top
Sorry, but I'm not following you. I tried putting that in, but it didn't correct the problem.
Reply With Quote
  #4 (permalink)  
Old Sep 21st, 2007, 16:16
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by 0413 View Post
Sorry, but I'm not following you. I tried putting that in, but it didn't correct the problem.
woah very sorry.
i thought you said it moved to the wrong position for some reason :s

anyway
which picture? and what class/id is it?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #5 (permalink)  
Old Sep 21st, 2007, 16:18
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Image positioning and differences in IE/FF

okay try giving the picture a class called center,
and putting this into your css:
.center {
margin: 0 auto;
}
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #6 (permalink)  
Old Sep 21st, 2007, 17:14
Junior Member
Join Date: Jun 2007
Location: Florida
Age: 31
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by alexgeek View Post
okay try giving the picture a class called center,
and putting this into your css:
.center {
margin: 0 auto;
}

hmmm, when I put this into my CSS I get the picture that moves all the way to the left. I want the picture to be centered in the white space that is off to the right. Any suggestions?

www.mommyandmimi.com/123456.htm
Reply With Quote
  #7 (permalink)  
Old Sep 21st, 2007, 17:17
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Image positioning and differences in IE/FF

i think it has to be in a container that has the attributes: float:right;
then the image has the code i just said
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #8 (permalink)  
Old Sep 21st, 2007, 17:24
Junior Member
Join Date: Jun 2007
Location: Florida
Age: 31
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by alexgeek View Post
i think it has to be in a container that has the attributes: float:right;
then the image has the code i just said
I'm sorry, I don't understand what you mean.
Reply With Quote
  #9 (permalink)  
Old Sep 21st, 2007, 17:49
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Image positioning and differences in IE/FF

add
float: right;

to your css code for content-side
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #10 (permalink)  
Old Sep 21st, 2007, 18:37
Junior Member
Join Date: Jun 2007
Location: Florida
Age: 31
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by alexgeek View Post
add
float: right;

to your css code for content-side
I already have that added to my CSS code.
Reply With Quote
  #11 (permalink)  
Old Sep 22nd, 2007, 12:30
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

The link is not working now...
Reply With Quote
  #12 (permalink)  
Old Sep 22nd, 2007, 12:39
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by Lchad View Post
The link is not working now...
404
but theres a very similiar page on the root (or index )
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #13 (permalink)  
Old Sep 22nd, 2007, 13:42
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

I would add to the #div content-box:
float: left;
That should scoot it over to the left.
As far as centering the image on the right, do you vertically?

If so, just add some margin-top to image.

Does that make sense?
Reply With Quote
  #14 (permalink)  
Old Sep 24th, 2007, 14:38
Junior Member
Join Date: Jun 2007
Location: Florida
Age: 31
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by Lchad View Post
I would add to the #div content-box:
float: left;
That should scoot it over to the left.
As far as centering the image on the right, do you vertically?

If so, just add some margin-top to image.

Does that make sense?
I tried adding the float: left; to the content-box and had no success. hmmm

What do you mean by margin-top to the image?

I really appreciate the help you guys
Reply With Quote
  #15 (permalink)  
Old Sep 24th, 2007, 14:59
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Image positioning and differences in IE/FF

using margin-top would push the image down slightly depending on how many pixels, ems or % you use
Reply With Quote
  #16 (permalink)  
Old Sep 24th, 2007, 15:55
Junior Member
Join Date: Jun 2007
Location: Florida
Age: 31
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by AdRock View Post
using margin-top would push the image down slightly depending on how many pixels, ems or % you use
I'm sorry, but how do I do this?
Reply With Quote
  #17 (permalink)  
Old Sep 24th, 2007, 15:56
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Image positioning and differences in IE/FF

{
margin-top: 10px;
}

apply that to whatever you want to move.
and change 10 to how many pixels you want to move it
you can also do:
margin-bottom, margin-left, margin-right
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #18 (permalink)  
Old Sep 24th, 2007, 17:43
Junior Member
Join Date: Jun 2007
Location: Florida
Age: 31
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by alexgeek View Post
{
margin-top: 10px;
}

apply that to whatever you want to move.
and change 10 to how many pixels you want to move it
you can also do:
margin-bottom, margin-left, margin-right
Sweet I was able to get it to move. Now I have the problem of the text differences between IE/FF. Take a look if you have the time:

http://www.mommyandmimi.com/AboutUs.htm
Reply With Quote
  #19 (permalink)  
Old Sep 24th, 2007, 17:55
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Image positioning and differences in IE/FF

yeah it's overlapping in FF
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #20 (permalink)  
Old Sep 24th, 2007, 18:14
Junior Member
Join Date: Jun 2007
Location: Florida
Age: 31
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image positioning and differences in IE/FF

Quote:
Originally Posted by alexgeek View Post
yeah it's overlapping in FF
any suggestions?

Thanks
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS positioning help - relative to background image sj2as Web Page Design 1 Sep 12th, 2007 01:27
Positioning an image with a link pregnantNproud Web Page Design 8 Aug 12th, 2007 01:33
Problem with image positioning Marc Web Page Design 1 May 31st, 2007 18:17
image positioning usind div container gemguy Web Page Design 5 May 25th, 2007 08:04
Positioning image absolutely timmytots Web Page Design 1 Jan 10th, 2006 02:27


All times are GMT. The time now is 03:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43