JannikL Posted December 11, 2011 Share Posted December 11, 2011 Hello people at W3Shools!I have now been looking around the forum for a few days, and my account has now been approved for posts :-)Let me get to my problem. I have a two buttons on my website, which changes the language of the side. I would like those placed at the buttom of the page, centered, in a div box with some other stuff - so I did that.I wrote the div once, and copied to the other pages, editing the names of html files, so it would stay at the same page.However on two pages, the two buttons are to the left, and on the last two, they are in the center - why is that?Link to website: www.fravaersudregner.dk/Homepage.html The two pages are Contact and Homepage Link to comment Share on other sites More sharing options...
niche Posted December 11, 2011 Share Posted December 11, 2011 Can you post some code? Your link only has one button. Link to comment Share on other sites More sharing options...
JannikL Posted December 11, 2011 Author Share Posted December 11, 2011 Haha my bad - I dont know why, but the 'h' in homepage must be a capital letter - http://www.fravaersudregner.dk/Homepage.html Link to comment Share on other sites More sharing options...
niche Posted December 11, 2011 Share Posted December 11, 2011 Try style="text-align:center;" and let us know. I might need to be in your wrapper div. You have align="center". EDIT: I don't see any centering for that element. Link to comment Share on other sites More sharing options...
JannikL Posted December 11, 2011 Author Share Posted December 11, 2011 Here is the code I got already on all four pages: <div align="bottom" style="background:url(bottomline.png) repeat"> <font size="5" align="center" font="arial" color="white";><br><p align="center">Administratore på denne side er ikke ansvarlige for tastefejl.</p><a href="Regn_Det_Ud.html"><img border="0%" src="dansk.png" alt="Skift Sprog til Dansk"><a href="Calculate_it.html"><img border="0%" src="Engelsk.png" alt="Change language"></font></div> Link to comment Share on other sites More sharing options...
JannikL Posted December 11, 2011 Author Share Posted December 11, 2011 You are absolutely right, I had none - added center as many places as possible, however it still does not work: <div align="bottom center" style="background:url(bottomline.png) repeat"><font size="5" align="center" font="arial" color="white";><br><p align="center">The administrators on this site are not responsible for typing errors in the calculator.</p><a href="index.html"><img src="dansk.png" border="0%" alt="Skift Sprog til Dansk"><a href="Homepage.html"><img border="0%" src="Engelsk.png" alt="Change language"></font></div><div> Link to comment Share on other sites More sharing options...
niche Posted December 11, 2011 Share Posted December 11, 2011 It works for me: <!-- W3s ques --><div align="bottom" style="background:url(bottomline.png) repeat;text-align:center;"><font size="5" align="center" font="arial" color="white";><br><p align="center">The administrators on this site are not responsible for typing errors in the calculator.</p><a href="index.html"><img src="dansk.png" border="0%" alt="Skift Sprog til Dansk"><a href="Homepage.html"><img border="0%" src="Engelsk.png" alt="Change language"></font></div> Link to comment Share on other sites More sharing options...
niche Posted December 11, 2011 Share Posted December 11, 2011 Just a suggestion. Please consider the float property for your positioning.. Link to comment Share on other sites More sharing options...
JannikL Posted December 11, 2011 Author Share Posted December 11, 2011 Just a suggestion. Please consider the float property for your positioning..Yes it works in chrome, but have you tried iExplorer? Link to comment Share on other sites More sharing options...
niche Posted December 11, 2011 Share Posted December 11, 2011 The script I sent you works in ie9 which is the one I use. Older copies I don't know. Link to comment Share on other sites More sharing options...
JannikL Posted December 11, 2011 Author Share Posted December 11, 2011 Oh I see it works for me too now - Thanks a lot :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.