Jump to content

Hopefully quick question...


coco777

Recommended Posts

Hello once again, and once again i am in need of your expert assistance.

 

The website in question is http://malvernweb.com

 

I would dearly like to move the right menu up to the top right so the page looks balanced.

 

Here is the style sheet.

 

/*

+---------------------------------------------------------------+

| e107 website system

|

| ©William Moffett 2001-2005

| http://e107.net

| que@e107.net

|

| Released under the terms and conditions of the

| GNU General Public License (http://gnu.org).

+---------------------------------------------------------------+

*/

 

body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; font-size:12px; color: #fff; background: #0F0F0F url(images/menub.jpg) top repeat-x; }

 

a

{ color: #FFFF00; font-weight: bold; text-decoration:none; }

 

a:hover

{ color: #FF9900; font-weight: bold; text-decoration: underline; }

 

p {}

 

h1, h2, h3, h4, h5, h6{

font-size: 12px;

color: #fff;

font-weight: bold;

border: 1px solid #000;

margin: 2px 0 6px 0;

padding: 4px 0px 0px 6px;

text-align: left;

height: 21px;

background: url(images/menuhb.jpg) repeat-x;

}

 

table

{ margin: 0px; padding: 0px; border: none; border-collapse: collapse; }

 

td

{ text-align:left; vertical-align:top; padding-left:2px; padding-right:2px; }

 

blockquote {}

 

ul, ol {}

 

form { }

 

input

{ margin:2px; }

 

hr

{ margin-top: 2px; height: 1px; border: none; background-color: #3f3f3f; }

 

/* SITE LAYOUT */

 

#main { margin: 0 auto; width: 90%; padding: 0; background: url(images/headb.jpg) repeat-x; height: 1px; border-left: 2px solid #000; border-right: 2px solid #000; }

#head { margin: 0; padding: 0; width: 90%; height: 220px; background: url(images/head.jpg) no-repeat transparent; float: left; }

 

#topmenu { margin: 0 auto; padding: 0; width: 90%; height: 10px; background: url(images/topmenub.jpg) repeat-x; border-left: 2px solid #fff; border-right: 2px solid #fff;}

 

/* main menu */

 

#navigation

{ margin: 0 0 0 0; padding: 189px 0 0 0; list-style-type: none; width: 100%; float: center; }

 

#navigation a

{ display: inline; float: center; text-decoration: none; text-align: center; color: #FDFDB3; padding: .2em .5em; float: center; color: #000;}

 

#navigation a:hover

{ color: #CC0033; font-weight: bold;  }

 

#navigation li

{ display: inline; float: center; }

 

/* end of main menu */

 

#main2 { margin: 0 auto; padding: 4px 0 0 0; background:url(images/mback.jpg) repeat-y right top #AF0800; width: 90%; border-left: 2px solid #000; border-right: 2px solid #000; }

 

#lmenu

{ margin: 6px 0 6px 4px; padding: 2px; width: 17%; background: url(images/menub.jpg) top repeat-x #0F0F0F; float: left; border: 1px solid #000; text-align: center; font: 12px Arial, Helvetica, sans-serif normal; color: #fff;}

 

#rmenu

{ margin: 6px 0 6px 4px; padding: 2px; width: 17%; background: url(images/menub.jpg) top repeat-x #0F0F0F; float: right; border: 1px solid #000; text-align: center; font: 12px Arial, Helvetica, sans-serif normal; color: #fff;}

 

.news

{ margin: 6px 4px 6px 4px; padding: 2px; width: 90%; float: center; }

 

.title

{   padding: 6px 0 0 6px; margin: 2px 0 0 0; font: 12px Arial, Helvetica, sans-serif; color: #fff; text-align: left; border-left: 1px solid #000; border-right: 1px solid #000; border-top: 1px solid #000; height: 21px; background: url(images/menuhb.jpg) repeat-x ; font-weight: bold; }

 

.story

{ padding: 0 4px 0 6px; margin: 0; text-align: left; background: url(images/menub.jpg) repeat-x #0F0F0F; border-left: 1px solid #000; border-right: 1px solid #000; font: 10px Arial, Helvetica, sans-serif normal; color: #fff;}

 

.date

{ padding: 6px 6px 6px 0; margin: 0 0 6px 0; font: 9px Arial, Helvetica, sans-serif bold italic; color: #fff; text-align: right; border: 1px solid #000; height: 21px; background: url(images/date.jpg) repeat-x; }

 

.postby

{ text-align: right; padding: 7px 7px 7px 0px; margin: 0; color: #FFFFCC; font: 10px Arial, Helvetica, sans-serif bold italic;}

 

#footer

{ margin: 0; padding: 4px 0 0 0; text-align: center; background: url(images/date.jpg) repeat-x; width: 100%; height: 34px; clear: both; font: 10px Arial, Helvetica, sans-serif normal; color: #fff; }

 

/* end of layout */

 

/* E107 STYLES */

 

.bodytable {

padding: 8px;

font: 12px verdana, tahoma, arial, helvetica, sans-serif;

color: #ccc;

}

 

.indent{

padding: 5px;

margin: 5px;

font: 9px verdana, tahoma, arial, sans-serif;

color: #aaa;

border: 1px solid;

background-color: #333333;

border-bottom: #39393b 1px solid;

border-left: #151515 1px solid;

border-right: #39393b 1px solid;

border-top: #151515 1px solid;

background: url(images/bgblock.jpg);

}

.indentchat{

border: 1px solid #000;

margin:2px;

padding:4px;

display:block;

text-decoration:none;

font-weight:bold;

text-align: center;

color: #fff;

background: url(images/menub.jpg) repeat-x #0F0F0F;

}

.small {

 

color: #fff;

font: 9px tahoma, verdana, arial, helvetica, sans-serif;

}

 

.smalltext {

font: 10px verdana, tahoma, arial, helvetica, sans-serif;

color: #fff;

}

.smallbottom {

font: 10px verdana, tahoma, arial, helvetica, sans-serif;

color: #fff;

text-align:left;

}

 

.tbox {

background-color: #fff;

border: #000 1px solid;

color: #000;

font: 10px verdana, tahoma, arial, helvetica, sans-serif;

}

 

.helpbox {

background-color: #1f1f1f;

border: #000 1px solid;

color: #cccccc;

font: 9px tahoma, verdana, arial, helvetica, sans-serif;

}

 

.button{

margin:2px 2px;

background: url(images/menuhb.jpg) repeat-x;

border: #000 1px solid;

color: #fff;

font: 9px verdana, tahoma, arial, helvetica, sans-serif bold;

text-align:center;

}

 

/* FORUM STYLES */

 

.fcaption {

padding:0px 4px;

height:21px;

line-height:21px;

background: url(images/menuhb.jpg) repeat-x #DCF257;

border: 1px solid #000;

color: #fff;

font-weight:bold;

}

 

.fcaption span.smalltext{

color: #6B7B61;

}

 

.fcaption span.smalltext a:hover{

color: #000;

}

 

.fcaption a {

color: #000;

text-decoration: none;

}

 

.fcaption a:hover {

color: #fff;

}

 

a.forumlink{

color: 000;

text-decoration: none;

}

 

a.forumlink:hover{

color: #fff;

}

 

.fborder {

border:0px;

background-color: transparent;

}

 

.forumheader{

   background: url(images/date.jpg) repeat-x #000;

padding:0px 4px;

height:20px;

line-height:16px;

font-weight:bold;

color: #FFF;

border-left: 1px solid #000;

border-right: 1px solid #000;

border-top: 1px solid #000;

}

 

.forumheader2{

  background: url(images/menub.jpg) repeat-x #0F0F0F;

color: #fff;

padding: 4px;

border: #000 1px solid;

}

 

.forumheader3{

  background: url(images/menub.jpg) repeat-x #0F0F0F;

color: #fff;

padding: 4px;

border: #000 1px solid;

 

}

 

.forumheader4{

background-color: url(images/menub.jpg) repeat-x #0F0F0F;

font: 10px verdana, tahoma, arial, sans-serif;

color: #fff;

padding: 4px;

border: #000 1px solid;

}

 

.finfobar{

color: #fff;

padding: 4px;

border: #000 1px solid;

background: url(images/date.jpg) repeat-x #000;

}

 

And heres the theme.php

 

<?php

/*

+ ----------------------------------------------------------------------------+

|     e107 website system

|

|     ©Steve Dunstan 2001-2002

|     http://e107.org

|     jalist@e107.org

|

|     Released under the terms and conditions of the

|     GNU General Public License (http://gnu.org).

|

|     $Source: /cvsroot/e107/e107_0.7/e107_themes/crahan/theme.php,v $

|     $Revision: 1.10 $

|     $Date: 2005/12/14 19:28:52 $

|     $Author: sweetas $

+----------------------------------------------------------------------------+

*/

 

if (!defined('e107_INIT')) { exit; }

 

// [multilanguage]

@include_once(e_THEME."AKIRA RedNeoN/languages/".e_LANGUAGE.".php");

@include_once(e_THEME."AKIRA RedNeoN/languages/English.php");

 

// [theme]

$themename = "AKIRA RedNeoN";

$themeversion = "1.0";

$themeauthor = "Samir Kahvedzic [AkIrA]";

$themeemail = "akira_tim@hotmail.com";

$themewebsite = "http://www.akira.knows.it";

$themedate = "21/04/2006";

$themeinfo = "More info, help and support on my site www.akira.knows.it.";

define("STANDARDS_MODE", TRUE);

$xhtmlcompliant = TRUE;

$csscompliant = TRUE;

define("IMODE", "dark");

define("THEME_DISCLAIMER", "<br /><i>".LAN_THEME_1."</i>");

 

$logo = "logo".rand(1, 4);

 

// [layout]

 

$layout = "_default";

 

$HEADER = "

<div id='main'>

<div id='head'>

<div id='search'>

 

</div>

<div id='navigation'>

{SITELINKS}

</div>

</div>

</div>

<div id='main2'>

<!-- start center column -->

<div id='lmenu'>

{MENU=1}

</div>

<div class='news'>

{SETSTYLE=default}

</div>

<div id='main2'>

<div id='rmenu'>

{MENU=2}

</div>

";

 

$NEWSSTYLE = "

   <div class='title'>{NEWSTITLE}</div>

    <div class='story'>

<br />

   {NEWSBODY}

   {EXTENDED}

   <div class='postby'>

     {EMAILICON}

     {PRINTICON}

     {ADMINOPTIONS}

     <br />

     Posted by

     {NEWSAUTHOR}

      :: 

     {NEWSCOMMENTS}

 </div>

 </div>

 <div class='date'>{NEWSDATE}</div>

 

   

   ";

 

$FOOTER = "

<div id='footer'>

{SITEDISCLAIMER}

</div>

</div>

";

 

define("ICONSTYLE", "float: left; border:0");

define("COMMENTLINK", LAN_THEME_3);

define("COMMENTOFFSTRING", LAN_THEME_2);

define("PRE_EXTENDEDSTRING", "<br /><br />[ ");

define("EXTENDEDSTRING", LAN_THEME_4);

define("POST_EXTENDEDSTRING", " ]<br />");

define("TRACKBACKSTRING", LAN_THEME_5);

define("TRACKBACKBEFORESTRING", " :: ");

 

 

// [linkstyle]

 

define(PRELINK, "<ul>");

define(POSTLINK, "</ul>");

define(LINKSTART, "<li>");

define(LINKEND, "</li>");

define(LINKDISPLAY, 1); // 1 - along top, 2 - in left or right column

define(LINKALIGN, "center");

 

 

// [tablestyle]

 

function tablestyle($caption, $text){

global $style;

if($style == "leftmenu"){

if($caption != ""){

echo "<h3>".$caption."</h3>";

if($text != ""){

echo "<div class='menuleft'>".$text."</div><br />";

}

}else{

echo $text."<br />";

}

}else if($style == "rightmenu"){

if($caption != ""){

echo "<h3>".$caption."</h3>".$text;

}else{

echo "<div id='menuright'>".$text."</div>";

}

}else if($style == "default"){

if($caption != ""){

echo "<h3>".$caption."</h3>".$text."<br />";

}else{

echo $text."<br />";

}

}else if($style == "message"){

if($caption = ""){

echo $text;

}

}else{

if($caption != ""){

echo "<h3>".$caption."</h3>".$text."<br />";

}else{

echo $text."<br />";

}

}

}

 

// [commentstyle]

/*

$COMMENTSTYLE = "{USERNAME} @ <span class='smalltext'>{TIMEDATE}</span><br />

{AVATAR}<span class='smalltext'>{REPLY}</span><br />

{COMMENT}

<div style='text-align: right;' class='smallext'>{IPADDRESS}</div>";

*/

// [chatboxstyle]

 

 

$CHATBOXSTYLE = "

<div class='spacer'>

<div class='indentchat'>

<img src='".THEME."images/bulletc.gif' />

<b>{USERNAME}</b><div style='text-align:left; padding:0px;'><span class='small' >{TIMEDATE}</span></div>

<span class='smalltext'><br />{MESSAGE}

</span><br><br />

</div>

</div>";

 

?>

 

Many thanks for your time.

Link to comment
Share on other sites

Ok ive managed to do that, but how do i get the middle to fit between the 2 menus http://malvernweb.com ?

 

The new theme.php

 

<?php

/*

+ ----------------------------------------------------------------------------+

|    e107 website system

|

|    ©Steve Dunstan 2001-2002

|    http://e107.org

|    jalist@e107.org

|

|    Released under the terms and conditions of the

|    GNU General Public License (http://gnu.org).

|

|    $Source: /cvsroot/e107/e107_0.7/e107_themes/crahan/theme.php,v $

|    $Revision: 1.10 $

|    $Date: 2005/12/14 19:28:52 $

|    $Author: sweetas $

+----------------------------------------------------------------------------+

*/

 

if (!defined('e107_INIT')) { exit; }

 

// [multilanguage]

@include_once(e_THEME."AKIRA RedNeoN/languages/".e_LANGUAGE.".php");

@include_once(e_THEME."AKIRA RedNeoN/languages/English.php");

 

// [theme]

$themename = "AKIRA RedNeoN";

$themeversion = "1.0";

$themeauthor = "Samir Kahvedzic [AkIrA]";

$themeemail = "akira_tim@hotmail.com";

$themewebsite = "http://www.akira.knows.it";

$themedate = "21/04/2006";

$themeinfo = "More info, help and support on my site www.akira.knows.it.";

define("STANDARDS_MODE", TRUE);

$xhtmlcompliant = TRUE;

$csscompliant = TRUE;

define("IMODE", "dark");

define("THEME_DISCLAIMER", "<br /><i>".LAN_THEME_1."</i>");

 

$logo = "logo".rand(1, 4);

 

// [layout]

 

$layout = "_default";

 

$HEADER = "

<div id='main'>

<div id='head'>

<div id='search'>

 

</div>

<div id='navigation'>

{SITELINKS}

</div>

</div>

</div>

<div id='main2'>

<!-- start center column -->

<div id='lmenu'>

{MENU=1}

</div>

<div id='rmenu'>

{MENU=2}

</div>

";

 

$NEWSSTYLE = "

    <div class='title'>{NEWSTITLE}</div>

    <div class='story'>

<br />

    {NEWSBODY}

    {EXTENDED}

    <div class='postby'>

      {EMAILICON}

      {PRINTICON}

      {ADMINOPTIONS}

      <br />

      Posted by

      {NEWSAUTHOR}

       :: 

      {NEWSCOMMENTS}

  </div>

  </div>

  <div class='date'>{NEWSDATE}</div>

 

   

    ";

 

$FOOTER = "

<div id='footer'>

{SITEDISCLAIMER}

</div>

</div>

";

 

define("ICONSTYLE", "float: left; border:0");

define("COMMENTLINK", LAN_THEME_3);

define("COMMENTOFFSTRING", LAN_THEME_2);

define("PRE_EXTENDEDSTRING", "<br /><br />[ ");

define("EXTENDEDSTRING", LAN_THEME_4);

define("POST_EXTENDEDSTRING", " ]<br />");

define("TRACKBACKSTRING", LAN_THEME_5);

define("TRACKBACKBEFORESTRING", " :: ");

 

 

// [linkstyle]

 

define(PRELINK, "<ul>");

define(POSTLINK, "</ul>");

define(LINKSTART, "<li>");

define(LINKEND, "</li>");

define(LINKDISPLAY, 1); // 1 - along top, 2 - in left or right column

define(LINKALIGN, "center");

 

 

// [tablestyle]

 

function tablestyle($caption, $text){

global $style;

if($style == "leftmenu"){

if($caption != ""){

echo "<h3>".$caption."</h3>";

if($text != ""){

echo "<div class='menuleft'>".$text."</div><br />";

}

}else{

echo $text."<br />";

}

}else if($style == "rightmenu"){

if($caption != ""){

echo "<h3>".$caption."</h3>".$text;

}else{

echo "<div id='menuright'>".$text."</div>";

}

}else if($style == "default"){

if($caption != ""){

echo "<h3>".$caption."</h3>".$text."<br />";

}else{

echo $text."<br />";

}

}else if($style == "message"){

if($caption = ""){

echo $text;

}

}else{

if($caption != ""){

echo "<h3>".$caption."</h3>".$text."<br />";

}else{

echo $text."<br />";

}

}

}

 

// [commentstyle]

/*

$COMMENTSTYLE = "{USERNAME} @ <span class='smalltext'>{TIMEDATE}</span><br />

{AVATAR}<span class='smalltext'>{REPLY}</span><br />

{COMMENT}

<div style='text-align: right;' class='smallext'>{IPADDRESS}</div>";

*/

// [chatboxstyle]

 

 

$CHATBOXSTYLE = "

<div class='spacer'>

<div class='indentchat'>

<img src='".THEME."images/bulletc.gif' />

<b>{USERNAME}</b><div style='text-align:left; padding:0px;'><span class='small' >{TIMEDATE}</span></div>

<span class='smalltext'><br />{MESSAGE}

</span><br><br />

</div>

</div>";

 

?>

Link to comment
Share on other sites

I can't speak for others, but I myself cannot be bothered going through all that code to try to figure out what is going on. If you posted a link to a live site (google 'free web hosting' if you don't have a server) and stated your problem, I would be a lot more likely to go through it to help.

Link to comment
Share on other sites

As a web designer myself, I would advice you to put your current site on hold and read 2 or 3 books on CSS design. I can't tell you how much it pisses me off when some web designer tries to start a "web designing company" and barely knows how to code clean CSS.

 

I don't want to sound to rash, but you don't understand how powerful CSS. Only 9 months ago I was in your shoes yelling at the computer screen because I didn't know what the hell was going on, but as I began to practice and learn, I realized that CSS is god. Go to Barnes & Nobles and get yourself a good CSS book.

Link to comment
Share on other sites

TheFilmGod comes off a little too harsh, but his advice is sound and he's right ... your layout is a cross-browser mess. In IE6 it almost works; in Modern browsers, however, it is totally broken.

 

I recommend finding some working templates for css and reverse engineering them to learn how they work. It would take too long to explain what is wrong with your layout. But don't get discouraged.

 

CSS takes time to master and can be frustrating, but it is an amazing tool.

 

Must read books:

 

1. Eric Meyer on CSS: Mastering the Language of Web Design

 

2. Dan Cederholm - Bulletproof Web Design: Improving flexibility and protecting against worst-case scenarios with XHTML and CSS

 

And a book EVERY person who creates websites MUST have and read:

 

1. Steve Krug - Don't Make Me Think: A Common Sense Approach to Web Usability (this is not about CSS, but about avoiding the usability mistakes that makes a website hard to navigate)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.