i just install a php web directory and i like to put some links to left and right of page but i dont now how? i do not know much about php?
thanks
http://nespressocoffee.net/
i just install a php web directory and i like to put some links to left and right of page but i dont now how? i do not know much about php?
thanks
http://nespressocoffee.net/
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.![]()
My approach would be as gdebojyoti.mail96 says, but I would put them in a "wrapper":
CSS:
HTML:Code:#wrapper {width: 100%; margin: auto;} #left { width: 50%; float: left;} #right { width: 50%; float: right}
Obviously you can add formatting with other CSS tags etcCode:<div id="wrapper"> <div id="left"> left links go here </div> <div id="right"> right links go here> </div> </div>
Hope that helps.![]()
Run a web search for "three column layout". The article "In Search of the Holy Grail" on A List Apart has one implementation.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.
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.
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 by misson; 09-01-2011 at 07:23 AM.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.
Left:
Right: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-->
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 by radiogrooves81; 09-01-2011 at 09:12 AM.
You can also echo html in PHP, or add PHP to HTML.
to echo html just add
or to add php within html add:Code:echo '<p>HTML within PHP</p>
Just make sure that any page that contains html is saved as a .php file.Code:<p><?php echo 'php within html';?></p>