Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Q: Why Is My Website Left-aligned In Ie?


  • Please log in to reply
1 reply to this topic

#1 Kaemic

Kaemic

  • Members
  • 23 posts
  • OFFLINE
  •  
  • Local time:04:39 AM

Posted 30 September 2006 - 06:46 PM

Okay, the website says it all.
Try opening it in Firefox first, all looks really great, right?
Now try doing the same in IE, odd, huh?

http://gamerscorner.co.nr

I'm using amaya for editing my website.
Template: Lost Logik
http://www.clantemplates.com/free_templates/1/31

Does someone have a idea of what could be wrong?
I tried putting the <center> command in my source code and it screwed up the whole design.

BC AdBot (Login to Remove)

 


#2 njustice

njustice

  • Security Colleague
  • 49 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:04:39 AM

Posted 01 October 2006 - 07:45 AM

Try using a external style sheet:

text-align: center;

margin-left: auto; margin-right: auto;

margin: 0 auto;

text-align: left;


text-align:center; for Internet Explorer

the side margins are set to auto, for the decent browsers like Firefox, margin: 0 auto; is the same thing just in shorthand.


<body style="text-align: center;"> 
<div id="centered_div" style="margin-left: auto; margin-right: auto; text-align: left;"> 
<h1>GamersCorner website</h1>
<p><b>Gamers, G33ks, amateurs and people needing help to fix something should take a look at this site, friendly and expanding website with ONE webamster admin willing to die for more users.</b></p>
<p>Please <a href="http://gamerscorner.110mb.com">Click here</a> to visit <a href="http://gamerscorner.110mb.com"><b>GamersCorner website</b></a></p><br><br>
<p>Powered by <a href="http://www.freedomain.co.nr/"><b>Free Domain Name</b></a> - <a href="http://www.freedomain.co.nr/"><b>Free URL Redirection</b></a> and <a href="http://www.freedomain.co.nr/"><b>Free Subdomain</b></a> @ .CO.NR</p> 
</div> 
</body>

Have I helped you? Please consider donating to help me continue my fight against malware Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users