Click here to Skip to main content
15,895,746 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: how to specify page title? Pin
Mohibur Rashid10-Nov-11 4:42
professionalMohibur Rashid10-Nov-11 4:42 
AnswerRe: how to specify page title? Pin
arya168515-Nov-11 1:10
arya168515-Nov-11 1:10 
QuestionPageLayout - your advise? Pin
Jassim Rahma10-Nov-11 3:04
Jassim Rahma10-Nov-11 3:04 
AnswerRe: PageLayout - your advise? Pin
Mohibur Rashid10-Nov-11 4:37
professionalMohibur Rashid10-Nov-11 4:37 
AnswerRe: PageLayout - your advise? Pin
arya168515-Nov-11 1:09
arya168515-Nov-11 1:09 
GeneralRe: PageLayout - your advise? Pin
Jassim Rahma15-Nov-11 3:49
Jassim Rahma15-Nov-11 3:49 
AnswerRe: PageLayout - your advise? Pin
awedaonline5-Dec-11 23:21
awedaonline5-Dec-11 23:21 
Questionwidth is making crazy! Pin
Jassim Rahma10-Nov-11 2:11
Jassim Rahma10-Nov-11 2:11 
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:


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
<html>
<head>
<style type="text/css">
    .sidebarmenu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    font: bold 13px Verdana;
    width: 180px; /* Main Menu Item widths */
    border-bottom: 1px solid #ccc;
    }
    
    .sidebarmenu ul li{
    position: relative;
    }
    
    /* Top level menu links style */
    .sidebarmenu ul li a{
    display: block;
    overflow: auto; /*force hasLayout in IE7 */
    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; /*background of tabs (default state)*/
    }
    
    .sidebarmenu ul li a:visited{
    color: white;
    }
    
    .sidebarmenu ul li a:hover{
    background-color: black;
    }
    
    /*Sub level menu items */
    .sidebarmenu ul li ul{
    position: absolute;
    width: 170px; /*Sub Menu Items width */
    top: 0;
    visibility: hidden;
    }
    
    .sidebarmenu a.subfolderstyle{
    background: url(right.gif) no-repeat 97% 50%;
    }
    
    /* Holly Hack for IE \*/
    * html .sidebarmenu ul li { float: left; height: 1%; }
    * html .sidebarmenu ul li a { height: 1%; }
    /* End */
    
    </style>
    
    <script type="text/javascript">
    
    //Nested Side Bar Menu (Mar 20th, 09)
    //By Dynamic Drive: http://www.dynamicdrive.com/style/
    
    var menuids=["sidebarmenu1"] //Enter id(s) of each Side Bar Menu's main UL, separated by commas
    
    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]) //if this is a first level submenu
    ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item
    else //else if this is a sub level submenu (ul)
    ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    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--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
    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>

AnswerRe: width is making crazy! Pin
Mohibur Rashid10-Nov-11 4:49
professionalMohibur Rashid10-Nov-11 4:49 
GeneralRe: width is making crazy! Pin
Jassim Rahma10-Nov-11 5:50
Jassim Rahma10-Nov-11 5:50 
GeneralRe: width is making crazy! Pin
Mohibur Rashid10-Nov-11 10:16
professionalMohibur Rashid10-Nov-11 10:16 
GeneralRe: width is making crazy! Pin
Jassim Rahma10-Nov-11 6:09
Jassim Rahma10-Nov-11 6:09 
GeneralRe: width is making crazy! Pin
Mohibur Rashid10-Nov-11 10:17
professionalMohibur Rashid10-Nov-11 10:17 
GeneralRe: width is making crazy! Pin
Jassim Rahma10-Nov-11 23:14
Jassim Rahma10-Nov-11 23:14 
GeneralRe: width is making crazy! Pin
Mohibur Rashid11-Nov-11 1:26
professionalMohibur Rashid11-Nov-11 1:26 
QuestionText to speech in PHP Pin
linanur8-Nov-11 0:33
linanur8-Nov-11 0:33 
AnswerRe: Text to speech in PHP Pin
Mohibur Rashid8-Nov-11 5:05
professionalMohibur Rashid8-Nov-11 5:05 
Question.htaccess question Pin
Jassim Rahma7-Nov-11 5:29
Jassim Rahma7-Nov-11 5:29 
AnswerRe: .htaccess question Pin
Gerben Jongerius7-Nov-11 20:22
Gerben Jongerius7-Nov-11 20:22 
GeneralRe: .htaccess question Pin
Jassim Rahma7-Nov-11 21:33
Jassim Rahma7-Nov-11 21:33 
Questionnews headline component Pin
Jassim Rahma6-Nov-11 4:35
Jassim Rahma6-Nov-11 4:35 
AnswerRe: news headline component Pin
User 17164927-Nov-11 23:47
professionalUser 17164927-Nov-11 23:47 
QuestionLinux Distribution Pin
Iranian MM2-Nov-11 21:59
Iranian MM2-Nov-11 21:59 
AnswerRe: Linux Distribution PinPopular
Richard MacCutchan3-Nov-11 0:00
mveRichard MacCutchan3-Nov-11 0:00 
GeneralRe: Linux Distribution Pin
Iranian MM3-Nov-11 0:24
Iranian MM3-Nov-11 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.