Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,789 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,696 people online right now. Registration is fast and FREE... Join Now!




Site page resolution

 
Reply to this topicStart new topic

Site page resolution

R Power
post 11 Oct, 2008 - 11:32 AM
Post #1


New D.I.C Head

*
Joined: 9 Oct, 2008
Posts: 4


My Contributions


Hye friends i am a beginner web programmer. Look If I create a website on my laptop it's resolution is wider due ti widescreen but when i look it at desktop computer it looks diff.or I created a website on my desktop comp but when i view it on laptop it looks such that a lot of space at right side is empty(white). When I look yahoo.com at my laptop it views standardly i.e at both left and right sides some space is left so as to provide a standard resolution. How to do that in my site.........
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 11 Oct, 2008 - 11:44 AM
Post #2


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,980



Thanked 77 times

Dream Kudos: 1175
My Contributions


Center the content of your website.

This can be done easily with HTML
CODE
<center>CONTENT HERE</center>


Or with CSS (though this takes a little more work).

HTH
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 11 Oct, 2008 - 11:58 AM
Post #3


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,911



Thanked 116 times

Dream Kudos: 8450

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


I believe (I could be wrong here) that the <center></center> tag has been depreciated. I would do this with CSS. In your CSS file have this

css

body {
text-align: center;
position: relative;
}

#wrapper {
width: 800px;
height: auto;
position: relative;
margin-left: auto;
margin-right: auto;
}


Then the body of your HTML should look like this

CODE

<body>    
        <div id="wrapper">
           <!-- Put your tables of DIV's inside here -->
        </div>
</body>


Hope that helps smile.gif
User is online!Profile CardPM

Go to the top of the page

BetaWar
post 11 Oct, 2008 - 12:01 PM
Post #4


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,980



Thanked 77 times

Dream Kudos: 1175
My Contributions


QUOTE
I believe (I could be wrong here) that the <center></center> tag has been depreciated.

That is correct, but it still works (at least until they decide to delete it from HTML for good).

Plus it is easier for people just starting out to understnad what it does.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 04:02PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month