iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-2008, 08:53 AM
Ree Ree is offline
WebProWorld New Member
 
Join Date: Aug 2008
Posts: 21
Ree RepRank 0
Default Need help - MSIE alignment issue

I know this is problem a common error, but I can't figure it out. On IE for PC, the alignment of my divs within my main content are all going far right instead of centering on the page. I'm working on a mac and this looks fine in IE for mac, as well as firefox and safari, but I don't have access to a PC. When I check it out in browsershots, I find the errors.

If you pull it up in firefox 1st, you'll see what I mean. I think it's something with text-align. Any help is greatly appreciated! Here it is:

Custom Web Design by Simply Fresh Web Designs

Thanks!
Reply With Quote
  #2 (permalink)  
Old 09-01-2008, 09:08 AM
MuNKyonline's Avatar
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Suffolk, England
Posts: 777
MuNKyonline RepRank 2
Default Re: Need help - MSIE alignment issue

For a start you dont need to wrap lists with paragraphs, the list is fine on its own:
<p><ul>
<li>custom website design </li>
<li>domain registration</li>
<li>email & contact forms</li>
<li>e-commerce solutions</li>

<li>updates and maintenance</li>
</ul> </p>

I think your problem is because you have no container div to wrap all the page contents.

Add a div with id="wrapper" around the other divs, give it a set width of 955px (which is 1024x768 with the browser maximised) in the css:

#wrapper { text-align:left; margin: 0 auto; width: 955px; }

I think that should stop the content going off to the right.
Reply With Quote
  #3 (permalink)  
Old 09-01-2008, 09:12 AM
Ree Ree is offline
WebProWorld New Member
 
Join Date: Aug 2008
Posts: 21
Ree RepRank 0
Default Re: Need help - MSIE alignment issue

Again, thank you! I have my marching orders for the day!
Reply With Quote
  #4 (permalink)  
Old 09-01-2008, 09:21 AM
MuNKyonline's Avatar
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Suffolk, England
Posts: 777
MuNKyonline RepRank 2
Default Re: Need help - MSIE alignment issue

LOL you sure do, let me know if i can be of any more help.
Reply With Quote
  #5 (permalink)  
Old 09-01-2008, 03:02 PM
Ree Ree is offline
WebProWorld New Member
 
Join Date: Aug 2008
Posts: 21
Ree RepRank 0
Default Re: Need help - MSIE alignment issue

Hmm.. that didn't do it. Maybe IE is adding all the margins for the divs together and coming up with a large left margin?
Reply With Quote
  #6 (permalink)  
Old 09-01-2008, 04:41 PM
Ree Ree is offline
WebProWorld New Member
 
Join Date: Aug 2008
Posts: 21
Ree RepRank 0
Default Re: Need help - MSIE alignment issue

YEAH!!! I got it! I have no idea what work b/c I got so fed up and change alot. But, I'm just thrilled it works.
Reply With Quote
  #7 (permalink)  
Old 09-02-2008, 08:09 AM
MuNKyonline's Avatar
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Suffolk, England
Posts: 777
MuNKyonline RepRank 2
Default Re: Need help - MSIE alignment issue

Glad you got it working, there a still a few errors though...

Move the title above the meta tags.

There is no <u> tag. If you want that underlined then do it with CSS. text-decoration:underline;

style="color:white; text-align:center" < this should be a class - keep styling and markup seperate!

The final </div> is not required.

Also you need to check your page and how the text resizes - accessibility.

The green box doesnt expand with the text!
Reply With Quote
  #8 (permalink)  
Old 09-02-2008, 10:15 AM
Ree Ree is offline
WebProWorld New Member
 
Join Date: Aug 2008
Posts: 21
Ree RepRank 0
Default Re: Need help - MSIE alignment issue

Thanks for checking it out again! I'm going to try to make those changes today and will post when I do. If you wouldn't mind, I'd love for you to take one more look.

Again, much appreciated!!

BTW - I didn't know you can expand the box with the text.. I'll have to figure that out!
Reply With Quote
  #9 (permalink)  
Old 09-02-2008, 12:31 PM
MuNKyonline's Avatar
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Suffolk, England
Posts: 777
MuNKyonline RepRank 2
Default Re: Need help - MSIE alignment issue

Dont give the box a height or if you do make it in ems. Use pixels for widths. Then try increasing the browser text size and make sure blocks expand nicely and parts dont overlap
Reply With Quote
  #10 (permalink)  
Old 09-03-2008, 08:58 AM
Ree Ree is offline
WebProWorld New Member
 
Join Date: Aug 2008
Posts: 21
Ree RepRank 0
Default Re: Need help - MSIE alignment issue

I made the corrections. I definitely have to move away from inline styling...for a quick fix, it's easier!

Regarding the box, it's an image. Is there a way to make rounded corners in CSS so not to assign a height?

Thanks!
Reply With Quote
  #11 (permalink)  
Old 09-03-2008, 10:20 AM
Dubbya's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,298
Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4
Default Re: Need help - MSIE alignment issue

There are at least 25 different ways to make rounded corners using CSS. You should be able to find what you need at:

25 Rounded Corners Techniques with CSS

Good Luck!
Reply With Quote
  #12 (permalink)  
Old 09-03-2008, 10:30 AM
Ree Ree is offline
WebProWorld New Member
 
Join Date: Aug 2008
Posts: 21
Ree RepRank 0
Default Re: Need help - MSIE alignment issue

OMG, thank you! I've been at this for a little over a month, so I just figured I make a box instead. Wow, that's so helpful!
Reply With Quote
  #13 (permalink)  
Old 09-03-2008, 10:34 AM
MuNKyonline's Avatar
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Suffolk, England
Posts: 777
MuNKyonline RepRank 2
Default Re: Need help - MSIE alignment issue

Well you only want the box to expand vertically so you need the code to have the right number of elements to apply the css to.

You need the top two corners then the middle to repeat and then the bottom two corners as images. So thats images to apply to three elements.

<div id=topCorners">
<div id="botCorners">
<p>Content here to expand<p>
</div>
</div>

CSS should be something like:

#topCorners { background: url(images/topcorners.gif) top no-repeat; }
#topCorners p { background: url(images/leftandrightsides.gif) repeat-y; }
#botCorners { background: url(images/bottomcorners.gif) bottom no-repeat; }

The middle image can be 1px high and will repeat with the content of the paragraph.

You'll find that this most likely wont all align correctly so you may have to play with the margin and padding a bit. Set it to 0 on all three elements and then see how it behaves before you adjust them.
Reply With Quote
  #14 (permalink)  
Old 09-04-2008, 12:06 AM
Ree Ree is offline
WebProWorld New Member
 
Join Date: Aug 2008
Posts: 21
Ree RepRank 0
Default Re: Need help - MSIE alignment issue

That was so helpful, thank you! I didn't get it at first, but then it clicked. Can you check it out again?

Can you tell me how I can get the footer to stick at the bottom? I've tried a few hacks I've come across, but can't seem to get it right.

Again, I can't tell you how much I appreciate your help!
Reply With Quote
  #15 (permalink)  
Old 09-04-2008, 09:49 AM
MuNKyonline's Avatar
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Suffolk, England
Posts: 777
MuNKyonline RepRank 2
Default Re: Need help - MSIE alignment issue

Wow thats looking great

Normally if you have divs floating above the footer like so:

<div id="header"></div>
<div id="left></div>
<div id="right"></div>
<div id=footer"></div>

So you have the #left column floating left and the #right floating right. You would then use #footer { clear:both; } to clear both of the left and right floating columns. That way the footer sticks below the floating columns even if they resize with the text.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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
alignment of flash in html vaidhee Web Programming Discussion Forum 1 02-29-2008 05:05 AM
MSIE 6 Font Problem webmasterjunkie IT Discussion Forum 2 05-05-2005 03:07 PM
Help ... Alignment screwed up BAD! designflaw Graphics & Design Discussion Forum 1 10-03-2004 02:22 PM
Alignment question schoener Graphics & Design Discussion Forum 6 03-26-2004 08:43 PM
Alignment Issues technica Graphics & Design Discussion Forum 12 03-12-2004 03:40 PM


All times are GMT -4. The time now is 09:35 PM.



Search Engine Optimization by vBSEO 3.3.0