how to put links on right and left side of page

Messages
89
Reaction score
0
Points
6
Using CSS, create 2 columns in the left and right sections of your page (also known as left and right 'sidebars'). Put your links in those sidebars.

Hope that helps. :)
 

mbengi.bongi83

New Member
Messages
8
Reaction score
0
Points
0
My approach would be as gdebojyoti.mail96 says, but I would put them in a "wrapper":

CSS:

Code:
#wrapper {width: 100%; margin: auto;}
#left { width: 50%; float: left;}
#right { width: 50%; float: right}

HTML:

Code:
<div id="wrapper">
<div id="left">
left links go here
</div>
<div id="right">
right links go here>
</div>
</div>

Obviously you can add formatting with other CSS tags etc

Hope that helps. :)
 

mpldev

New Member
Messages
4
Reaction score
0
Points
0
Hi.

I usually create a table with three columns in one row :
<table width="100%">
<tr>
<td width="20%">Left Side</td>
<td>Middle</td>
<td width="20%">Right Side</td>
</tr>
</table>

This code don't need css or php, just html.

I hope this could help you.

Bye.

Greg.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
1999 called, it wants... you know the rest. Don't use tables for layout.

Please use
PHP:
, [html] or [code] tags (as appropriate) to separate and format code.
 
Last edited:

radiogrooves81

New Member
Messages
42
Reaction score
0
Points
0
Left:

Code:
<!-- Header left begin-->
   <div style = "text-align:left; float:left">
      <b>Links:</b>
   </div>
<!-- Header left end-->
 
<!-- Links left begin-->
   <div style = "clear: left; float: left; text-align: left;">
      <br />
      <a href = "http://www.yourdomain.com">C++ Topics</a>
      <br />
      <a href = "http://www.yourdomain.com">JAVA Topics</a>
      <br />
      <a href = "http://www.yourdomain.com">BINARY Topics</a>
   </div>
<!-- Links left end-->

Right:

Code:
<!-- Header right begin-->
   <div style = "text-align:right; float:right">
      <b>Links:</b>
   </div>
<!-- Header right end-->
 
<!-- Links Right begin-->
   <div style = "clear: right; float: right; text-align: right;">
      <br />
      <a href = "http://www.yourdomain.com">C++ Topics</a>
      <br />
      <a href = "http://www.yourdomain.com">JAVA Topics</a>
      <br />
      <a href = "http://www.yourdomain.com">BINARY Topics</a>
   </div>
<!-- Links right end-->
 
Last edited:

bsha100

New Member
Messages
3
Reaction score
0
Points
0
You can also echo html in PHP, or add PHP to HTML.

to echo html just add
Code:
echo '<p>HTML within PHP</p>

or to add php within html add:
Code:
<p><?php echo 'php within html';?></p>

Just make sure that any page that contains html is saved as a .php file.
 
Top