|
It's good to use table tag for your site.............
Thanks & Regards
Arya1685
"You are not only responsible for what you say, but also for what you do not say"
|
|
|
|
|
Thanks everyone
|
|
|
|
|
Table is okay but div is recommended because that is what I use for my page layout in all applications I write.
|
|
|
|
|
Hi,
Please check this:
http://www.rmc.bh/dept
and the same here http://www.rmc.bh/en/team
why the two boxed on the left (contents) and right (menu) is taking 50% even when I am setting 100% for the content and 200px for the menu?
here is the dept.php:
<body dir="rtl" lang="ar-bh">
<table width="100%" cellpadding="0" cellspacing="10px" border="1">
<tr><td colspan="2"><?php include("header.php"); ?></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr>
<td valign="top" width="200px"><?php include("menu.php"); ?></td>
<td valign="top" width="100%">
<h2>الأقسام</h2>
</td>
</tr>
</table>
and this is the menu.php just in case:
<html>
<head>
<style type="text/css">
.sidebarmenu ul{
margin: 0;
padding: 0;
list-style-type: none;
font: bold 13px Verdana;
width: 180px;
border-bottom: 1px solid #ccc;
}
.sidebarmenu ul li{
position: relative;
}
.sidebarmenu ul li a{
display: block;
overflow: auto;
color: white;
text-decoration: none;
padding: 6px;
border-bottom: 1px solid #778;
border-right: 1px solid #778;
}
.sidebarmenu ul li a:link, .sidebarmenu ul li a:visited, .sidebarmenu ul li a:active{
background-color: #012D58;
}
.sidebarmenu ul li a:visited{
color: white;
}
.sidebarmenu ul li a:hover{
background-color: black;
}
.sidebarmenu ul li ul{
position: absolute;
width: 170px;
top: 0;
visibility: hidden;
}
.sidebarmenu a.subfolderstyle{
background: url(right.gif) no-repeat 97% 50%;
}
* html .sidebarmenu ul li { float: left; height: 1%; }
* html .sidebarmenu ul li a { height: 1%; }
</style>
<script type="text/javascript">
var menuids=["sidebarmenu1"]
function initsidebarmenu(){
for (var i=0; i<menuids.length; i++){
var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
for (var t=0; t<ultags.length; t++){
ultags[t].parentNode.getElementsByTagName("a")[0].className+=" subfolderstyle"
if (ultags[t].parentNode.parentNode.id==menuids[i])
ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px"
else
ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px"
ultags[t].parentNode.onmouseover=function(){
this.getElementsByTagName("ul")[0].style.display="block"
}
ultags[t].parentNode.onmouseout=function(){
this.getElementsByTagName("ul")[0].style.display="none"
}
}
for (var t=ultags.length-1; t>-1; t--){
ultags[t].style.visibility="visible"
ultags[t].style.display="none"
}
}
}
if (window.addEventListener)
window.addEventListener("load", initsidebarmenu, false)
else if (window.attachEvent)
window.attachEvent("onload", initsidebarmenu)
</script>
</head>
<body>
<div class="sidebarmenu">
<ul id="sidebarmenu1">
<li><a href="http://www.rmc.bh/en">ENGLISH</a></li>
<li><a href="http://www.rmc.bh/">الصفحة الرئيسية</a></li>
<li><a href="about">حول المركز</a></li>
<li><a href="team">الأطباء</a></li>
<li><a href="dept">الأقسام</a></li>
<li><a href="services">الخدمات</a></li>
<li><a href="album">ألبوم الصور</a></li>
<li><a href="health">صحتكم تهمنا</a></li>
<li><a href="careers">التوظيف</a></li>
<li><a href="contact">اتصل بنا</a></li>
</ul>
</div>
<br><br><div style="text-align: center;"><a href="http://webmail.rmc.bh/" target="_blank"><img src="images/staff_email.jpg" border="0" /></a></div>
</body>
</html>
|
|
|
|
|
one html page can have one HTML section one head section, one body section but you have two for all of them ............
remove all and realted meta from your menu.php
Then we will discuss further
|
|
|
|
|
Freat.. Appreciate..
One question before I start please..
I have many things in my meta tags..
can I use a php file for it and inculde it withing the ? ho? just normal include?
|
|
|
|
|
|
ok johny
it looks better now
but can you please tell me why do i have the space above the side menu? I checked everywhere anc can't see it? the side menu should start in the same level of the contents...
www.rmc.bh/dept
Thanks,
jassim
|
|
|
|
|
you are making this page as utf-8
make sure the files are without BOM
|
|
|
|
|
where is the BOM in this page?
http://www.rmc.bh/dept[^]
Also, one more question Johny...
I am currentlly testing the above page and it's fine then I will apply on all pages but I have noticed it's all somehow the same exvept big difference in IE.in positioning the contents when I use different browsers?
Here is the print screen of the same page on different browsers (browser name is the file name).
How can I fix it?http://www.rmc.bh/temp/dept.zip[^]
Thanks,
Jassim
|
|
|
|
|
In general there is some difference from browser to browser. the differences are mostly in Javascript and css.
But one thing you must have to notice you must have to close all the tag that has ending. as example div has start tag and closing tag, if you miss closing tag some browser will not make any trouble but some browser will fail
|
|
|
|
|
I'm doing a mini project on reading messages from forum using TTS.
I have tried searching many resources but I still couldn't find any free tts software. I'm just trying to implement in my mini project, not commercializing it or anything.
This link, http://www.phpclasses.org/package/4097-PHP-Convert-test-to-speech-using-Expressivo-service.html I thought it might work, but as soon as I used it, I got an error about the code about some unknown txt variable, although it was declared. Someone commented this is a paid service so I guess it doesn;t work now.
Can anyone help me in this matter? I'm using Dreamweaver CS5 and XAMPP's PHPMyAdmin as my database.
|
|
|
|
|
I wont answer your problem,
Just inform you that phpmyadmin is not your database.........
you are using xamp, it mean you are using MySQL as database.
|
|
|
|
|
Hi,
I am trying the URL rewriting for the first time on mysql server (Dreamhost).
I have create .htaccess file with the following:
RewriteEngine on
RewriteRule ^contact$ /contact.php [L]
RewriteRule ^team$ /team.php [L]
I suppose this will show www.mydomain.com/contact.php as www.mydomain.com/contact (without the extension) and that's what I want..
and it's working fine.. when I type www.mydomain.com/contact I am getting the page BUT.... I also get www.mydomain.com/contact.php when I type? so is there anyway NOT to show it with .php and just /contact?
hope i explained it well..
|
|
|
|
|
First of you might wanna read a bit on the Apache rewrite mod, which tells you everything you will ever need to know about rewriting URL's. But to get you started you need to look into the NC option as well as the QSA option in your rewrite rules.
|
|
|
|
|
Thanks for your reply..
This works fine But.....
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^home$ index.php [NC,QSA]
RewriteRule ^contact$ /contact.php [NC,QSA]
RewriteRule ^team$ /team.php [NC,QSA]
RewriteRule ^about$ about.php [NC,QSA]
The user can go to contact page using /contact and /contact.php
How can I force /contact only (without the .php)?
and /home only (not /index.php)?
etc..
|
|
|
|
|
Hi,
can anyone recommend a news headline component for PHP to display news, perhaps something similar to the news.google.com..
Thanks,
Jassim
|
|
|
|
|
|
Which Linux distribution is better for a windows developer to start learning Linux? and why?
|
|
|
|
|
Take a look here[^] for some information of the most popular distributions. The 'best' is the one that you feel comfortable with. If you know command line usage, application and hardware setup and C/C++, then you will probably feel comfortable with any of these.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
|
I merely made a suggestion as to somewhere to look, it is up to you to make the final decision.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Like the timeline in the wikipedia document... I hadn't seen that before...
|
|
|
|
|
I would suggest Ubuntu... it has a huge user community (that is generally VERY helpful) and it is very easy to install and to get going with. I have multiple machines running Ubuntu (11.10 and the LTS version, 10.04). Good luck!
|
|
|
|
|
I switched using OpenSUSE, and found that installing FireFox, Mono and Wine[^] helps a lot.
Bastard Programmer from Hell
|
|
|
|