Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Problem Aligning In Firefox


9 replies to this topic

#1 Jaxx

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 04 August 2008 - 09:29 AM

Hello everyone!

I am new here. :)

I am looking for some advice...I've been fiddling around with my site for the last few hours and have had no luck!

www.thelatency.com/test/tour_dates.php as you can the image header above all the text is aligned perfectly in IE and not in Firefox. Any ideas?

Thanks so much in advance. :D

#2 KingSingh

    Newbie

  • Kontributors
  • Pip
  • 7 posts

Posted 04 August 2008 - 02:04 PM

What do you want to do? Which image? How should it be aligned?

It would help if you gave this sort of information, and maybe post the header code so we can see what you've done wrong and right?

#3 Jaxx

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 04 August 2008 - 06:51 PM

Oops I'm sorry!

This is how the image should look:

Attached File  right.jpg   202.9K   11 downloads

But it looks like this in Firefox:

Attached File  wrong.jpg   209.43K   9 downloads

The code I'm using in the stylesheet is the following:

#news-content-title {
	position:absolute;
	left:460px;
	top:525px;
                width:440px;
	height:69px;
}

And the code I'm using to embed it on the page is:

<div id="news-content-title">
<img src="images/TourDates.jpg" width="600" height="61" alt=""></div>


#4 truefusion

    Coincidence is non-sequitur, therefore everything has a reason for its existence (except if they are eternal).

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3,216 posts
  • Gender:Male
  • Location:No, not there. Not there either. Yes, you'll never figure it out.
  • Interests:God, Christianity.
  • myCENT:86.16

Posted 04 August 2008 - 08:25 PM

Try using a negative margin instead of manually setting its position (assuming you want the image to slightly overlap the banner):
#news-content-title {
	position: absolute;
	margin-top: -10px;
}


#5 jlhaslip

    Insert Custom Title Here

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,040 posts
  • Gender:Not Telling
  • Location:Linux, DOS and Windows…the good, the bad and the ugly
  • myCENT:81.07
  • Spam Patrol

Posted 05 August 2008 - 05:34 AM

You should not need to use Absolute position for this design.

Review Margins, and Padding to achieve the effect you want.

Also, add a correct Document Type Declaration to avoid Quirks Mode in IE.

#6 Jaxx

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 05 August 2008 - 05:55 AM

I tried adding a margin and padding and still no luck. :) Any other ideas?

#7 sonesay

    |||[ n00b King ]|||

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 958 posts
  • Gender:Male
  • Location:Auckland
  • myCENT:68.27

Posted 05 August 2008 - 07:19 AM

Ok I saw this this morning but I had no time so I'm only looking at it now. Your using an id tag in the new page but it has no define CSS for it that's why its not showing up correctly in fire fox. Also there is another problem you are using absolute positioning to control the heading and content so I guess it still works but not my idea way to do layouts.

I've attached a screen shot in Firefox view with firebug. I checked the first style on your main page and just changed the id to that so its using that style 'new-content-main'
Yours is 'new-content-title' so either make a new style for that and adjust accordingly.

You will also have to adjust 'new-content' id as you can see in the screen shot its being effected as well but keep in mind if your other pages are using that same id it will be effected too so there it is I've pointed out the problem hope you can decide on a solution and have fun :)

Attached Files



#8 anwiii

    I wont bite...unless you WANT me too

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,704 posts
  • Gender:Male
  • Location:Chilhowee, MO
  • Interests:watching grass grow....
  • myCENT:62.06
  • Spam Patrol

Posted 05 August 2008 - 07:56 AM

looks like you got it solved. good job

i would suggest tweeking your image links because at first glance, they don't look like links at all because of the limited spacing. would look better if spaced the images or create a roll over effect. would be a better read.

i use nothing but firefox so decided to go to your site but saw you didn't need any imput from me as you fixed the problem. again. good job bud

#9 Jaxx

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 06 August 2008 - 07:08 AM

View Postsonesay, on Aug 5 2008, 07:19 AM, said:

Ok I saw this this morning but I had no time so I'm only looking at it now. Your using an id tag in the new page but it has no define CSS for it that's why its not showing up correctly in fire fox. Also there is another problem you are using absolute positioning to control the heading and content so I guess it still works but not my idea way to do layouts.

I've attached a screen shot in Firefox view with firebug. I checked the first style on your main page and just changed the id to that so its using that style 'new-content-main'
Yours is 'new-content-title' so either make a new style for that and adjust accordingly.

You will also have to adjust 'new-content' id as you can see in the screen shot its being effected as well but keep in mind if your other pages are using that same id it will be effected too so there it is I've pointed out the problem hope you can decide on a solution and have fun :P

You are amazing thank you!!

Thanks everyone for trying! :)

#10 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 16 August 2008 - 06:18 AM

aligment problem
Problem Aligning In Firefox

Ok man I'm newbie to web pages, I'm a graphic designer but I'm starting to dig into web design and my problem is similar to the one you "had".

Now, seeing that you are into PHP you have more experience to understand that answer...In my case wasn't like that, can you try to explain to me like if you are trying to explain it to you grandma?

My problem is with the red dots I'm usin an image for it and beside a text... All works perfectly in IE bot never on FF and by the way I'm getting spaces between my flash movies and cell... Nothing about cell space or padding is a floating error into FF browser.


-reply by JuanSBach




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users