Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6583151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:22:16+00:00 2026-05-25T16:22:16+00:00

I have a simple problem with my interface. The situation I will describe as

  • 0

I have a simple problem with my interface. The situation I will describe as follow:

I have a main_menu.php (top menu) that I’m calling in all my pages the top menu has your own css style, bellow the top menu I’m calling an tiny app that I call info panel it shows up some information about my server, prices of some products, etc.

The point here is, My top menu it is working perfectly, my info panel (top_panel.php) also is working, but when I call the 2 app in the same page for example (call in my index.php) the css style broke up. I had try everything, but nothing change.

How can I put the info panel in a background, is it possible? or it is better to write the css style all together in a single file?

[EDITED from here]

Here goes some code:

my common page -> top.php

<?php 
// My common configurations
include_once("config/config.php");

?>

<link rel="stylesheet" type="text/css" href="<?=$server_name;?>/portal/style.css" />

<table>
 <tr>
  <td>

   <?php
   // if session ten require the main menu 
otherwise shows blank
   if (isset($_SESSION["nome"])) {

       require( "main_menu.php" );

   }
   ?>

  </td>
 </tr>
 <tr>

  <td> 

    <?php include( "includes/top_panel.php" ); // the panel shows up but it is in the foreground and I need it fixed in the background ?> 

  </td>

 </tr>


<!-- some other code -->

</table>

?>

My css style is in another file it is a long file, ’cause everything is in there.

The main_menu.php (the menu style is all together with the menu itself, showing only the style)

<style type="text/css">
body {
    font: 10px normal Verdana, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}
h1 {
    font: 4.7em normal Georgia, 'Times New Roman', Times, serif;
    color: #333;
    margin: 0;
    padding: 0px 0;
}
h1 small {
    font: 0.2em normal Verdana, Arial, Helvetica, sans-serif;
    text-transform:uppercase;
    letter-spacing: 1.5em;
    display: block;
    color: #fff;
}
.container {width: 975px;}

ul#topnav {
    margin: 0; padding: 0;
    float: left;
    width: 975px;
    list-style: none;
    position: relative;
    font-size: 1.2em;
    background: url(<?=$server_name;?>/portal/images/topnav_stretch.gif) repeat-x;
}

/* posicao do menu */
ul#topnav li {
    //background: #000;
    background: url(<?=$server_name;?>/portal/images/topnav_stretch.gif) repeat-x;
    float: left;
    margin: 3px; padding: 0;
    border-right: 1px solid #555;
}
ul#topnav li a {
    padding: 10px 15px;
    display: block;
    color: #f0f0f0;
    text-decoration: none;
}
ul#topnav li:hover { background: #1376c9 url(<?=$server_name;?>/portal/images/topnav_active.gif) repeat-x; }
ul#topnav li span {
    float: left;
    padding: 15px 0;
    position: absolute;
    left: 0; top:35px;
    display: none;
    width: 975px;
    background: #1376c9;
    color: #fff;

    -moz-border-radius-bottomright: 5px;
    -khtml-border-radius-bottomright: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    -khtml-border-radius-bottomleft: 5px;
    -webkit-border-bottom-left-radius: 5px;
}
ul#topnav li:hover span { display: block; }
ul#topnav li span a { display: inline; }
ul#topnav li span a:hover {text-decoration: underline;}
</style>

My top_panel.php

<style type="text/css">

#content_marquee {



    position: relative;

    top: 40px; 

    width: 975px;

    height: 30px;

    color: yellow;

    font-family: Verdana, Georgia, sans-serif;

    font-size: 25px;



    background: url(images/bg_black.png);

    background-repeat: repeat x y;



    -moz-border-radius-bottomright: 5px;

    -khtml-border-radius-bottomright: 5px;

    -webkit-border-bottom-right-radius: 5px;

    -moz-border-radius-bottomleft: 5px;

    -khtml-border-radius-bottomleft: 5px;

    -webkit-border-bottom-left-radius: 5px; 



    -moz-border-radius-topright: 5px;

    -khtml-border-radius-topright: 5px;

    -webkit-border-top-right-radius: 5px;

    -moz-border-radius-topleft: 5px;

    -khtml-border-radius-topleft: 5px;

    -webkit-border-top-left-radius: 5px;    



}



#opacity_div{

    opacity:0.5;

}

</style>



<div id="opacity_div">

    <label><marquee id="content_marquee"> __file__ __line__ __sleep __wakeup </marquee></label>

</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:22:17+00:00Added an answer on May 25, 2026 at 4:22 pm

    After take a deep look inside my style sheet and my interface, finally I discovered a little mistakes,and I have fixed up all of them. I’m answering my own question just to tell it is working now.

    Then I did as follow:

    Styles.css
    It has all my styles now, I have centralized here.

    my top.php

    It has a call to the top_panel.php, but with one difference, before I was using table tags, and now I’m using div tags, it make the big difference, with table it was not working properly, the main_menu.php was in the background and top_panel.php in the foreground.

    Then I have called top_panel.php before the main_menu.php, now it is in the background and I can call the menu and it is in the foreground.

    It is an workaround that works perfectly and exactly as I was expecting to. Then the problem was solved.

    Now I have 4 pages involved to arquieve the result.

    • main_menu.php -> It is the top menu
    • style.css -> all my styls is here (not anymore in the interface)
    • top.php -> it is the layout/interface of the system (It is called in everywhere)
    • top_panel.php -> (Now it just request some datas from the database and shows it up)

    The secret was just call top_panel.php before than everything. And change the layout to a tabeless layout. finally I do not worry about broken position in my layout.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple problem and a solution that will work, but I'm
I have somewhat of a problem. We have a centralized interface engine that will
i have very simple problem. I need to create model, that represent element of
I have a simple problem that i cannot solve. I have a dictionary: aa
I have a simple problem. I created a custom UITableViewCell that includes a UISwitch
I have a simple plugin architecture for my program that uses an interface to
Here is my situation: I have an interface that each of my controls use
It will be probably a simple problem, but I have been staring on this
I have a simple problem when querying the SQL Server 2005 database. I have
I have a simple problem but I am not sure how to solve it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.