5 replies [Last post]
kevpool1
Offline
newbie
Last seen: 14 years 15 weeks ago
Joined: 2007-01-29
Posts: 4
Points: 0

I am enquiring about my site i have a big space at the top of my page in IE7, i have attached code for you to look at. I should point out it is a joomla site. I am used to using tables but decided to give them a kick and go with CSS, this seems to be the only real problem i have come across so far since istarted with CSS.

/* CSS global reset for all browsers */ * { padding: 0; margin: 0 }

body {
margin: 0 auto;
padding: 0;
background: #2b4b64;
color : #000
}

.content {
margin: 0 auto;
padding: 0;
width: 950px;
background: #FFF
}

#right_side_wide {
float: right;
width: 710px;
padding-right: 35px;
}

#right_side2 {
float: right;
width: 540px;
padding-right: 10px
}

#mosright {
float: right;
min-height: 344px;
width: 183px;
margin-right: 10px !important;
margin-right: 5px;
border-left: 1px #eeeeee dotted;
}

#left_side {
float: left;
margin-left: 10px!important; margin-left: 5px;
margin-bottom: 10px;
width: 183px;
min-height: 344px;
background: url(../images/sidebg.jpg) no-repeat top center;
border-right: 1px #eeeeee dotted;
}

#left_side a {
color: #616161;
}

#left_side img {
margin-left: 12px
} /* for indentx images for submenus */

/* TOP HEADER PART ----- */
#top {
margin: 0px auto;
width: 950px;
background: #FFF;
height: 88px;
}

#top h1 {
padding: 0px 0 0 60px;
color: #455D6A;
font-size: 160%
}

#top h2 {
padding: 0px 0 0 60px;
color: #aaa;
font-size: 100%;
}

#top .padding {
padding-top: 0px;
margin-left: 15px;
background: url(../images/logo.jpg) no-repeat left;
height: 88px;
}

/* TOP MENU PART PART ------ */
#topmenu {
margin: 0px auto;
width: 931px;
background: url(../images/menu.gif) repeat-x top;
height: 34px;
}

/* NEWSFLASH PART ----- */
#newsflash {
margin: 0px auto;
width: 950px;
background: url(../images/mainimg.jpg) no-repeat center;
height: 167px;
}

#newsflash .left {
width: 670px;
float:right;
}

#newsflash .left .padding {
font-family: "Tahoma", arial;
padding: 15px 0 0 0px;
width: 640px;
}

#newsflash th {
font-family: "Tahoma", arial;
font-size: 170%;
text-align: left;
color: #FFF;
}

#newsflash td {
font-family: "Tahoma", arial;
font-size: 120%;
text-align: left;
color: #FFF;
font-weight: normal;
}

#newsflash a {
color: #FFF;
text-decoration: underline;
}

#mainlevel-nav{
list-style: none;
padding: 0px;
margin: 0 auto;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.8em;
padding-left: 0px;
}

#mainlevel-nav li{
padding: 0px;
float: left;
margin: 0;
font-size: 12px;
line-height: 34px;
white-space: nowrap;
list-style-type: none;
width: auto;
background: url(../images/menusep.gif) no-repeat top right;
}

#mainlevel-nav li a{
text-align: left;
padding-left: 15px;
padding-right: 15px;
text-decoration: none;
color: #FFF;
background: transparent;
font-weight: bold;
}

#main {
margin: 0 auto;
width: 950px;
padding-top: 0px;
background: #FFF;
}

#main .padding {
width: 950px;
}

#search {
float: right;
padding: 25px 40px 0px 0px;
margin: 0;
}

#footer {
margin: 0px auto;
width: 950px;
background:#002741;
padding: 0px;
clear: both;
height: 50px;
}

#footer .padding {
padding-top: 20px;
text-align: center;
color: #FFF;
}

#footer a {
color: #FFF;
font-weight:100;
}

#footer a:hover {
color: #FFF;
text-decoration: underline;
}

.banner {
margin: 0 auto;
padding-top: 15px;
text-align: center;
}

/* MODULES 5,6 and 7 */
#modules {
width: 915px;
margin: 0px auto;
height: 170px;
background: #FFF;
clear: both;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
}

.mod_user5 {
width: 290px;
padding: 5px 5px;
float: left;
color: #000;
height: 125px;
background: #EDF3F7 url(../images/moduletop.gif) repeat-x top;
}

.mod_user6 {
height: 125px;
width: 290px;
margin: 0 auto;
margin-right: 3px;
padding: 5px 5px;
float: right;
color: #000;
background: #EDF3F7 url(../images/moduletop.gif) repeat-x top;
}

.mod_user7 {
width: 290px;
padding: 5px 5px;
float: right;
color: #000;
height: 125px;
margin: 0 auto;
margin-left: 5px; /* for IE... */
background: #EDF3F7 url(../images/moduletop.gif) repeat-x top;
}

#modules .moduletable th {
padding-top: 15px;
color: #3A7A9F;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 14px;
text-align: left;
background: inherit;
}

#modules .moduletable td {
padding-top: 10px;
color: #686868;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
}

#modules a {
text-decoration: underline;
color: #6BC238;
}

td,tr,p,div {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
color: #505050;
line-height:140%;
letter-spacing:115%;
text-align:justify;
}

h1, h2, h3, h4, h5, h6, h7 {
color: #364A62;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 14px; font-weight: bold;
padding: 0;
margin-bottom:5px;
}

a:link, a:visited {
font-size: 12px;
color: #364a62;
font-weight:600;
text-decoration: none;
font-family: Arial, Verdana, Helvetica, sans-serif;
}

a:hover {
color: #000000;
text-decoration: underline;
}

p{
margin-bottom:7px;
}

ul {
margin: 5px 0px 20px 30px;
}

.mostread li {
padding: 0px 5px 0 5px;
list-style: 3px;
list-style-type: none;
}

.latestnews li
{
padding: 0px 5px 0 0px;
list-style: 0px;
list-style-type: none;
}

li {
padding: 5px 5px 0 5px;
list-style: 3px;
list-style-type: square;
}

.mosimage {
border: 1px solid #EEE;
padding: 0px;
margin: 1px 8px 8px 0px;
}

.mosimage_caption {
background-color: #EEE;
color: #666;
}

/**
* General Joomla Styles
* --------------------
* The following are styles that are often used
* site wide by Joomla to provide better control
* of content's appearences.
*/

hr {
/* often used in components like Akobook, and Simpleboard forum
to define the separator lines */
background: transparent;
height:1px;
border: 1px solid #CCFF00;
}

hr.separator {
/* found this css style in PeekJoomla's css style. Still haven't worked out
if this is a custom style or an in built style. Will update when I find out*/
background: transparent;
height: 1px;
width: 75px;
border: 1px solid #CCFF00;
}

.pagenavbar {
/*for some weird reasons, this is not used in page nav, but found it used
for nick names in forum threads by Simpleboard */
}

.pagenav {
/* as the name implies, this is for formatting texts for
those "<< Start < Previous 1 Next > End >>" links */
font-weight: normal;
color: #555;
}

a.pagenav, a.pagenav:visited {
/* same as above, but for links */
font-weight: normal;
color: #556b77;
}

a.pagenav:hover {
/* same as above, but for links with mouse pointer over it */
font-weight: normal;
color: #556b77;
text-decoration: underline;
}

.small {
/* general style for texts when small size fonts are used. In
the contents, this style is used for "Written by..." texts */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
color: #888;
text-decoration: none;
font-weight: normal;
}

.smalldark {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
color: #666;
text-decoration: none;
font-weight: normal;
}

/**
* Joomla Form Styles
* -----------------
* Here are 2 styles that Joomla uses to let users control
* how their forms and buttons may look.
*/

.button {
/* this style applies to most form buttons generated by
Joomla and its components. Change its format here*/
color: #333;
font-family: Arial, Verdana, Helvetica, sans-serif;
margin-top: 4px;
font-weight: normal;
text-align: center;
font-size: 12px;
background: #ccc;
border: 1px solid #111;
height: 20px;
}

.inputbox {
/* Again, the name implies that this style changes the
way those input box looks */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background: #F8F8F8;
border: 1px solid #DDD;
padding-left: 2px;
}

.inputbox:hover {
background: #E6ECEF;
}

/**
* Joomla Tabbed Frontend Admin Interface
* -------------------------------------
* The CSS styles here defines how the frontend admin interface
* will look like when editing and adding news through frontend.
*/

.ontab {
/* For styling of the "Tab" buttons when editing contents through the frontend
(when you log in as admin in the frontend). This .ontab is the styling for the
tab when it is active or after its "clicked" */
background-color: #323A15;
border-left: outset 1px #DCF2FA;
border-right: outset 1px #808080;
border-top: outset 1px #DCF2FA;
border-bottom: solid 1px #d5d5d5;
text-align: center;
font-weight: bold;
color: #FFFFFF;
}

.offtab {
/* Same as above, used for styling of the "Tab" buttons when editing contents through the frontend.
This .ontab is the styling for the tab when it is NOT active or when it is NOT "clicked" */
background-color : #e5e5e5;
border-left: outset 1px #E0E0E0;
border-right: outset 1px #E0E0E0;
border-top: outset 1px #E0E0E0;
border-bottom: solid 1px #d5d5d5;
text-align: center;
cursor: hand;
font-weight: normal;
}

.tabpadding {
/* this style is used set the size of the tab in
in the above */
padding-top: 5px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
}

.tabheading {
/* Not too sure what this is used for. Couldn't find anything
related to it yet at the moment */
}

.pagetext {
/* this style is used to style the content of the editing form
contents (where HTMLArea sits and all its forms + contents) in
the frontend Administration interface */
visibility: hidden;
display: none;
position: relative;
top: 0;
}

/**
* Joomla Menu Styling
* ------------
* You can control the way menu behave and look
* by using the CSS settings below
*/


a.mainlevel:link, a.mainlevel:visited {
/* this styling is for the MAIN items in the menu */
display: block;
text-decoration:none;
text-align: left;
padding: 3px 15px 3px 0px;
margin-left: 15px;
height: 16px;
border-bottom: 1px dashed #e5e5e5;
width: 140px;

}

#left_side a.mainlevel:hover, #mosright a.mainlevel:hover {
color: #364A62;
font-weight: bold;
}

#left_side #active_menu, #mosright #active_menu {
color: #364A62;
font-weight: bold;
}

a.sublevel:link, a.sublevel:visited {
/* this styling is for menu items that HAS A PARENT */
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #6BBD00;
font-weight: normal;
}

a.sublevel:hover {
/* pffff!.. you know this! */
color: #6BBD00;
text-decoration: none;
}

/**
* Joomla General styling for Sections/Categories/Contents
* ------------------------------------------------------
* These stylings are either sometimes or often used across
* Sections, categories and contents. They, therefore, deserves
* to be mentioned and separated from others.
*/

.createdate {
/* name says it all.. its for styling the date the content/articles are created under
contents title */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 9px;
color: #aaa;
text-decoration: none;
font-weight: normal;
padding: 0 0 10px 0;
}

.modifydate {
/* need me to say? :) Well it styles the "Last updated on" text
at the end of articles/contents */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
color: #aaa;
text-decoration: none;
font-weight: normal;
}

a.readon:link, a.readon:visited {
/* For formatting the "Read on..." link for blogs and on frontpage. */
color: #556b77;
text-decoration: none;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
padding-left: 0px;
}

a.readon:hover {
/* Pfft..! */
color: #556b77; text-decoration: underline;
font-weight: normal;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
}

/**
* Joomla Styling for Contents
* --------------------------
* All the styling for contents are listed
* below.
*/

.contentpane {
/* This is used mainly for the table that holds the SECTIONS such as News.
This is when you create a link to a Section and when clicked on it, it will display
"News" then some description (with image if you selected one) and then a list of
Category of News. Yes! That entire thing is contained in a table with this style */
background-color : #FFF;
}

.contentpaneopen {
background-color : none;
}

.contentpaneopen img {
padding: 10px;
}

.buttonheading img {
padding: 2px;
}

.contentheading {
font-size: 13px;
font-weight: bold;
color: #3D5864;
padding-left: 0px;
padding-top: 0px;
text-decoration : bold;
text-indent: 0px;
text-align: left;
background: #FFF;
height: 22px;
}

.contentpagetitle {
/* Couldn't find where is this yet. Will update this part when I
get to it. Sorry. If you know, please email me the infos */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #5E0A0C;
text-align:left;
}

.contentdescription {
/* When you create a link to a Section in the main menu and when clicked on it, it will display
"News" then some description (with image if you selected one) and then a list of
Category of News. This style is used for formating the "DESCRIPTION" part of that page */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
color: #333;
text-align: left;
}

.contentdescription img {
padding-right: 5px;
}

table.contenttoc {
/* This is used to format the table of the Tables of Contents or "Jump to"
box when it is enabled in a multiple paged content or article */
color: #333;
background-color: #FFF;
border: 1px solid #666;
margin: 10px;
padding: 5px;
}

table.contenttoc td {
/* the same as above, but this is used to format the td or
table cells */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-align:left;
padding: 3px;
}

.content_rating {
/* used for styling the texts used for displaying
those "stars" for rating in an article */
font-weight: normal;
font-size: 8pt;
}

.content_vote {
/* used for those voting texts (the one with voting RADIO buttons) */
font-weight: normal;
font-size: 8pt;
}

/**
* Joomla Sections Styles
* ---------------------
* Styling of sections tables
*/

.sectiontableheader {
/* This is for styling the section table headers on a SECTION's page.
An example would be those articles lists when you click on "News" or something?
With a table header of "Date", "Item Title", "Author" and "Hits" ? That's the
header that you will be controlling through this style */
background-color : #A9CEE3;
padding: 2px;
color : #FFF;
font-weight : bold;
}

.sectiontableentry1 { background-color: #FFF; }
.sectiontableentry2 {background-color : #e5e5e5;}
.sectiontableentry1 img, .sectiontableentry2 img { padding-right: 10px; padding-left: 5px; }

/**
* Joomla Styles for Categories
* ---------------------------
* The following are the styling for "Category" items
* generated from the Sections area
*/

.category {
/* this is to set the category Titles ( found on a SECTION's page
where the Category lists are) styles */
color: #364A62;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
text-decoration: none;
}

a.category:link, a.category:visited {
/* same as above, but to set the link format */
color: #556b77;
font-weight: bold;
}

a.category:hover {
/* same as above, but for links with mouse pointer over it */
color: #556b77;
text-decoration: underline;
}

/**
* Joomla Blog styling
* ------------------
* Not too sure where this is used yet. I tried the blog section
* but it doesn't seem to use it. If you have info on this,
* email me. I'll update this part.
*/

a.blogsection:link, a.blogsection:visited {
color: #556b77;
text-decoration: none;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
}

a.blogsection:hover {
color: #556b77;
text-decoration: underline;
font-size: 11px;
}

/**
* Joomla Components Styles
* -----------------------
* These stylings are to format the way components title
* is displayed
*/

.componentheading {
/* This is used for formatting the component's title
when it is displayed on its own page on the frontend */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #000;
text-align:left;
padding: 0 0 10px 0;
text-decoration: underline;
}

/**
* Joomla Modules formatting
* ------------------------
* These stylings are to format the way modules are
* displayed. It mainly deals with the format of its
* table. I think this doesn't need too much explaining
*/
#left_side table.moduletable {
background: transparent;
margin-bottom: 5px;
padding-bottom: 5px;
}

#left_side table.moduletable th, #mosright table.moduletable th {
/* styling the module header, and the module titles */
text-align: left;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #000;
width: 194px;
height: 23px;
text-decoration: none;
padding: 5px 0px 0 10px;
text-indent: 0px;
background-image : url(../images/moduleheader_bg.jpg);
}

#left_side table.moduletable td, #mosright table.moduletable td {
/* well.. for formatting the table cells of the module table */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
}

#left_side table.moduletable tr, #mosright table.moduletable tr {
/* well.. for formatting the table cells of the module table */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
}

#left_side .moduletable form, #mosright .moduletable form {
padding: 10px 10px 5px 15px;
}

#left_side .moduletable form a {
color: #556b77;
}

.syndicate {
padding:15px;
}

/**
* Joomla's Built-in Component's Syling
* -----------------------------------
* These stylings are used for Joomla's built-in components
* such as newsfeeds, weblinks, contact, search and polls.
* A commented subtitle will guide you which is for which
*/


/* Polls */

.poll {
/* polls texts */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
color: #364A62;
line-height: 16px;
margin-bottom: 10px;
padding: 0px;
}

.pollstableborder {
/* set the border properties of the polls voting table */
border: 1px solid #FFF;
}

label {
padding-left: 0px;
}

.poll label {
padding-left: 6px;
}

/* Weblinks */

a.weblinks:link, a.weblinks:visited {
/* well.. to format the link's titles under the "Weblinks"
section on the frontend */
color: #556b77; text-decoration: none; font-weight: normal;
font-family: Arial, Verdana, Helvetica, sans-serif;
}

a.weblinks:hover {
/* same as above, but for link with mouseover */
color: #556b77; text-decoration: underline;
}

/* Newsfeeds */

.newsfeedheading {
/* The newsfeed title. NOTE: This will not affect the newsfeed's news title! */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #364A62;
}

.newsfeeddate {
/* yeah.. the date on the newsfeed */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
color: #FFFF99;
font-weight: normal;
}

.fase4rdf {
/* this is the body text of the newsfeed */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
color: #FFFFFF;
font-weight: normal;
}

a.fase4rdf:link {
/* links of the body text of the newsfeed */
font-size: 11px;
font-weight: bold;
color: #364A62;
text-decoration: none;
}

a.fase4rdf:hover {
/* links of the body text of the newsfeed when mouse points over it*/
font-size: 11px;
font-weight: bold; color: #364A82;
text-decoration: underline;
}

/* Search page */

table.searchintro {
/* This is for formatting the box with "Search Keyword: test returned 4 matches" box
that appears after you have entered a search value. It appears on the mainbody
with the search results */
background-color: #FFF;
border: 1px solid #666;
}

/* Contact's table settings */

table.contact {
/* for formatting the entire "Contact" table which includes
the name, address icons and form. Note this table DOES NOT
enclose the dropdown list for selecting the Department/person
to contact */
background-color: #333333;
}

table.contact td.icons {
/* the name gave it away. This formats the cells
where the little icons sits next to the details (those addresses,
phone number etc) */
background-color: #333333;
}

table.contact td.details {
/* this is for formatting the cells where all the details sits.
The details where addresses, phone number and additional info are */
background-color: #333333;
font-size: 11px;
font-family: Arial, Verdana, Helvetica, sans-serif;
}

.syndicate {
padding-top: 10px;
}

<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>

/templates/<?php echo $mainframe-> getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" media="all"/>
/images/favicon.ico" />
<?php
if ( $my->id ) { initEditor(); }
mosShowHead();
?>

<?php mosLoadModules ('user3'); ?>
<?php mosLoadModules ('top'); ?>
<?php if(mosCountModules('right')) { ?>
<?php mosLoadModules('right'); ?>
<?php mosMainBody(); ?> <?php } else { ?>
<?php mosMainBody(); ?> <?php } ?>
<?php mosLoadModules('left'); ?>
<?php mosLoadModules( 'debug', -1 );?>

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 7 weeks 3 days ago
Joined: 2004-06-30
Posts: 9674
Points: 810

PHP source isn't a lot of

PHP source isn't a lot of help to CSS developers, any chance of posting the actual HTML output?

Verschwindende wrote:
  • CSS doesn't make pies

kevpool1
Offline
newbie
Last seen: 14 years 15 weeks ago
Joined: 2007-01-29
Posts: 4
Points: 0

Thanks for your

Thanks for your reply

Sixfold International - Home



























Contact Us








Tel: 01227 860 375



Fax: 01227 860 375



E-mail:[email protected]




News and Downloads

Sixfold International

Sixfold GroupOperating for over fifteen years, Sixfold provides businesses with the ideas, knowledge, programmes and tools to help them significantly improve their sales performance whilst keeping sales costs under control. By working with the most senior levels of management, sales teams, consultants and sales support staff, Sixfold has used its experience and innovative approaches to help many companies transform sales results and increase the contribution from both their sales and consultancy workforce. Clients range from the largest UK Public Sector organisations, to multinational IT companies, through to small and medium sized firms in a variety of sectors.

Our Core Practice Areas

For companies who sell to other businesses or the Public Sector our client services have grown around a clear focus: helping companies to extend and sustain high levels of individual performance across sales teams for their part in realising strategic business goals.

Principle solutions include:

Strategic Sales Excellence Working with you to implement or strengthen winning strategies to succeed with complex or high value sales, perhaps implement a formal bid management process or combat competitors.

Organisational Development Helping to manage your talent. Programmes to ensure that individuals at all levels of senioirity or career stage can develop their respective capacity and adapt for a growing contribution aligned to the changing needs of the organisation.

Select your Role or Focus.....



Chief Executive / Managing Director










About Sixfold International

You will find more about our background plus examples of recent project achievements here .



 






Main Menu



Home Our Leadership Your Role or Focus Our Core Practices

kevpool1
Offline
newbie
Last seen: 14 years 15 weeks ago
Joined: 2007-01-29
Posts: 4
Points: 0

Problem is now solved,

Problem is now solved, thanks anyway.

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 7 weeks 3 days ago
Joined: 2004-06-30
Posts: 9674
Points: 810

No problem . . . how did you

No problem . . . how did you solve it?

Verschwindende wrote:
  • CSS doesn't make pies

kevpool1
Offline
newbie
Last seen: 14 years 15 weeks ago
Joined: 2007-01-29
Posts: 4
Points: 0

Extra closing div in the

Extra closing div in the wrong place.