Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    Wink calling mga master website designers


    Mga bro, patabang unta ko saon pagcenter sa display sa website.

    kay nkatry mn gd ko nga gamit rko layout tables sa dreamweaver then sa akong screen resolution

    ok ra kau ang display but when viewed sa higher resolution kay d naman sya center.

    patabang ko sa mga master dha og website designing. Assignment mn ni namo gd sa skol.

    unsay gamiton mga bro pra macenter ang display bsag iview sa different screen resolution?

    Thanks kau daan.

  2. #2
    I think this will help you with your problem ^____^

    HTML Code:
    <html>
    <head>
    <title>ABSOLUTE CENTER CONTENT</title>
    <style type="text/css">
    <!--
    .style1 {color: #FFFFFF}
    body {
    	background-color: #666666;
    }
    -->
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
    
    <body>
    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td width="600" height="400" align="center" valign="middle" bgcolor="#000000"><span class="style1"><strong>ABSOLUTE CENTER CONTENT</strong><br>
        <small>(600x400 px)</small></span></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    </body>
    </html>
    View sample

    although it's a table based layout... you can do this on css as well.

    HTML Code:
    <html>
    <head>
    <title>ABSOLUTE CENTER CONTENT (CSS version)</title>
    
    <style>
    body {
    	padding: 0px;
    	margin: 0px;
    	height: 100%;
    	width: 100%;
    	background-color: #666666;
    }
    #container {
    	height: 100%;
    	width: 100%;
    	display: table;
    }
    #container #mainContent {
    	width: 600px;
    	height: 400px;
    	position: absolute; 
    	display: table-cell;
    	top: 50%;
    	left: -300px;
    	margin-top: -200px;
    	margin-left: 50%;
    	background-color: #000000;
    }
    #container #mainContent #textCenter {
    	width: 600px;
    	height: 400px;
    	color: #ffffff;
    	display: table-cell;
    	vertical-align: middle;
    	text-align: center;
    }
    </style>
    
    </head>
    
    <body>
    <div id="container">
    	<div id="mainContent">
      	<div id="textCenter">
        <strong>ABSOLUTE CENTER CONTENT (CSS version)</strong><br /><small>(600x400 px)</small></p>
      </div>
    </div>
    </body>
    </html>
    View sample

    if you notice, on IE browsers, the text on the css version is not centered horizontally. you may need to insert some javascript in order to fix that issue.

    ^______^

  3. #3
    bro flashfreak daghan kau salamat bay...ako ni suwayan gamiton imong gihatag nga code. Salamat kau bay.

  4. #4
    If horizontal lang ang pag center kay pde nimo isulod sa <div> dayon add margin: 0 auto; nalang.

  5. #5
    Quote Originally Posted by Dondon2d View Post
    If horizontal lang ang pag center kay pde nimo isulod sa <div> dayon add margin: 0 auto; nalang.
    kani, effective sad kaayo pag pa center, i've also tried this one

  6. #6
    kanang pwede mo hirit ug pangutana? hehehehe

    gi unsa na ang kanang pix ang gigamit pic sa background sa table?

    gi try nko putol2x (murag puzzle style) nya gibutang sa tables dli man masumpay ug dli ma porma hehehe
    unsa gigamit ana <div> or <table>? hehe

  7. #7
    @GOSPELofROCH: unsa imong pasabot sa "pix ang gigamit pic sa background sa table?"?? libog ko

    anyway, if your having problems with slicing up images on tables... just make sure your table dimensions is the same with your sliced images.

    for example if you have 3 images with 100px x 200px each, the table should be written as:

    HTML Code:
    <table width="300" height="200" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100" height="200" align="center" valign="middle" background="[YOUR_IMAGE_1.jpg]">
          TEXT HERE
        </td>
        <td  width="100" height="200"align="center" valign="middle" background="[YOUR_IMAGE_2.jpg]">
          TEXT THERE
        </td>
        <td width="100" height="200" align="center" valign="middle" background="[YOUR_IMAGE_3.jpg]">
          ANOTHER TEXT HERE
        </td>
      </tr>
    </table>

  8. #8
    @flashfreak

    tnx bro now i get it, kalimot ko naa man d ay attributes ang tables nga background wahahaha ako gibuhat kay <td><img src="blahblah.jpg"></td> mao d ay sayup. hehehe tnx kau bro.
    Last edited by GOSPELofROCH; 06-19-2008 at 09:50 AM.

  9. #9
    way blema bai ^_____^ glad i could help.

  10. #10
    Mura deprecated naman na background nga attrib tingali.

  11.    Advertisement

Page 1 of 2 12 LastLast

Similar Threads

 
  1. Calling all Multimedia/graphic designers!
    By bytelick in forum Websites & Multimedia
    Replies: 1
    Last Post: 05-24-2008, 11:54 AM
  2. website designing
    By diana_20 in forum Websites & Multimedia
    Replies: 43
    Last Post: 12-19-2007, 02:24 AM
  3. MOVED: I need Freelance website designer and developer
    By diem in forum Websites & Multimedia
    Replies: 0
    Last Post: 08-02-2007, 09:29 PM
  4. WEBSITE DESIGN COMPETITION
    By mike_iansat in forum Websites & Multimedia
    Replies: 4
    Last Post: 05-24-2007, 06:43 PM
  5. Mga master's naa koy question...
    By nitto1320i in forum Computer Hardware
    Replies: 8
    Last Post: 02-21-2006, 06:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top