another centering issue with css

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

another centering issue with css

Postby luv » Mon 18 Oct, 2010 1:54 pm

I am trying to update my webpage to be xhtml compliant by changing the tables to css positioning. I just started changing my page www.freesdtv.com. I uploaded what I did so far onto www.freesdtv.com/test. The words on the page are as I want therm but I can not get the thing centered on the computer monitor. I have tried all sorts of align="center" and "right". The words seem glued to the left of the page. Can you help center this page (www.freesdtv.com/test)?
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 (.NET CLR 3.5.30729)
luv
junior member
junior member
 
Posts: 6
Joined: Sun 17 Oct, 2010 8:27 pm

Re: another centering issue with css

Postby Anonymosity » Tue 19 Oct, 2010 12:48 am

When I view that test page, I do not see it centered either, but who cares? It is readable and everything there is visible. It seems to me that centering exactly would be hard to do for everybody, since different people are using different screen resolutions and different window sizes in the browser.
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; rv:1.9.2.10) Gecko Firefox/3.6.10
Anonymosity
silver member
silver member
 
Posts: 400
Joined: Sat 21 Jun, 2008 2:56 am

Re: another centering issue with css

Postby James » Tue 19 Oct, 2010 10:02 am

You're responding to SPAM. These jerks have gotten a bit more creative. Instead of putting their links at the end by the signatures, they're now inserting them into the body of the post.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
James
User avatar
James
diamond member
diamond member
 
Posts: 3164
Joined: Sat 13 Jul, 2002 12:10 am

Re: another centering issue with css

Postby luv » Tue 19 Oct, 2010 2:40 pm

This isnt spam. If you look at the page it is a splash page. Splash pages are meant to garner interest. If it was spam I would probably give a link directly to buy the product, and I probably wouldnt have changed my entire code. Anyway, I worked on the site. Instead of just putting margin: 0px 0px 0px 0px; I wrote out margin-top margin-bottom margin right and margin left. This seems to work better. I then added the width px and the margin left together and made sure that it did not exceed 832px because the third smallest monitor is 832X624. All monitors that are 800X600 and 640X480 will get a scroll bar I assume. Does anyone know if you have to make the entire px width smaller than the monitor size or will 832px total across like I did be sufficient? Since I finished the site it is now up on www.freesdtv.com and the original code is now www.freesdtv.com/test. I give this to you so you can look at the source code. Also I was wondering lines 141-150 did not meet the validation on validator.w3.org. I know it has something to do with putting quotes in but I dont know where because I did not make the code. Original code looks like this:

<input type=hidden name="Stop_Status" value="Active" />

I want to thank all people who help other people. It is totally a blessing and I appreciate it so much.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 (.NET CLR 3.5.30729)
luv
junior member
junior member
 
Posts: 6
Joined: Sun 17 Oct, 2010 8:27 pm

Re: another centering issue with css

Postby James » Tue 19 Oct, 2010 10:36 pm

No... I do NOT wish to visit your site. Furthermore, you do NOT need to repeat the link to your site three times in one post. As far as I'm concerned, this is unnecessary. Honestly, I cannot think of anyone here who is sucked into these... "visit my site" either in the signatures or now the bodies of the posts. I find it somewhat strange that a new member rather than introducing him/herself, immediately wants us to visit his/her site for freesdtv in order to see whatever. As far as I'm concerned, your post constitutes SPAM.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
James
User avatar
James
diamond member
diamond member
 
Posts: 3164
Joined: Sat 13 Jul, 2002 12:10 am

Re: another centering issue with css

Postby Anonymosity » Wed 20 Oct, 2010 12:17 am

Quite apart from whether this is spam or not, being concerned about the size of a monitor is not the most important thing. It is whether the page works in a browser window, whatever size it may be. Everybody on the planet does not have the browser window occupying the entire screen area.
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; rv:1.9.2.11) Gecko Firefox/3.6.11
Anonymosity
silver member
silver member
 
Posts: 400
Joined: Sat 21 Jun, 2008 2:56 am

Re: another centering issue with css

Postby Antony » Wed 20 Oct, 2010 2:32 am

luv wrote:I then added the width px and the margin left together and made sure that it did not exceed 832px because the third smallest monitor is 832X624. All monitors that are 800X600 and 640X480 will get a scroll bar I assume.

Personally, I believe you can ignore 640x480 visitors. Not saying there aren't any, but it would be hardly any. All modern desktop OS would have (or recommended) resolution much higher than that.

You might want to add following into your <head> ... </head> for iOS users.
Code: Select all
<meta name="viewport" content="width=device-width">


luv wrote:Does anyone know if you have to make the entire px width smaller than the monitor size or will 832px total across like I did be sufficient?

If it is just a little bit off, don't worry about it.
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
User avatar
Antony
diamond member
diamond member
 
Posts: 15235
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Re: another centering issue with css

Postby luv » Thu 21 Oct, 2010 4:16 pm

Thanks for suggesting <meta name="viewport" content="width=device-width">. I added it to my page.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 (.NET CLR 3.5.30729)
luv
junior member
junior member
 
Posts: 6
Joined: Sun 17 Oct, 2010 8:27 pm

Re: another centering issue with css

Postby luv » Fri 22 Oct, 2010 9:49 am

I wanted to address the gentleman who kept saying over and over that I was spamming. At first I did not understand it but now I think I do. I think there was a major misunderstanding due to the fact that this man was simply not aware that you can receive code from websites. I invite you to go to any website. It does not have to be mine and right click. From there you will see a pop up menu that says view source. This is the code and this is why I kept inviting people to my website. I hope that clarifies things a little.
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB6.3; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 3.0.30618)
luv
junior member
junior member
 
Posts: 6
Joined: Sun 17 Oct, 2010 8:27 pm

Re: another centering issue with css

Postby James » Fri 22 Oct, 2010 10:06 am

I apologize. I was wrong in my assumptions. I hope you will forgive my presumptuousness. It's just that we are besieged at times with spammers who include their links into the body of the messages and their signatures. They have little interest (if any) in the forum coming here solely to spam us. You were different and I should have respected your post. Sorry. :oops:
UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b6) Gecko/20100101 Firefox/4.0b6
James
User avatar
James
diamond member
diamond member
 
Posts: 3164
Joined: Sat 13 Jul, 2002 12:10 am

Re: another centering issue with css

Postby luv » Mon 25 Oct, 2010 3:14 pm

No problem. You are very passionate and formidable and a diamond member and deserve repect. I am also sorry that I upset you in the past and I hope that no one upsets you in the future. My utmost respect to you always. :)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11 (.NET CLR 3.5.30729)
luv
junior member
junior member
 
Posts: 6
Joined: Sun 17 Oct, 2010 8:27 pm

Re: another centering issue with css

Postby James » Mon 25 Oct, 2010 10:14 pm

luv wrote:No problem. You are very passionate and formidable and a diamond member and deserve repect. I am also sorry that I upset you in the past and I hope that no one upsets you in the future. My utmost respect to you always. :)


LOL... I suppose it's true. I've been here quite a while (even on the older SillyDog forum) and can be a bit of a guard dog. My bark is far scarier than my bite. :wink: Thanks for understanding and by the way: welcome to the forum. I hope you remain a strong, contributing member. Best regards. :)
UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b6) Gecko/20100101 Firefox/4.0b6
James
User avatar
James
diamond member
diamond member
 
Posts: 3164
Joined: Sat 13 Jul, 2002 12:10 am


Return to Web Design and Page Coding

Who is online

Registered users: Bing [Bot], Exabot [Bot], Google [Bot], Yahoo [Bot]