Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [HopeForYou] Frames and browser issue

Quote Reply
Re: [HopeForYou] Frames and browser issue In reply to
Its cos you messed up your CSS file (IE is obviously not as fussy)

You had 2 extra } charachters where they shouldn't be. This works fine for me:

Code:
@import url(luna_core.css);

/*
This file inherits from luna_core.css, so styles in this file will override
styles defined in it. Changes to this file will NOT be overwritten during
upgrades.

Here's a quick tutorial on overriding styles. Say you want to change the
background colour of the body. Looking at luna_core.css, the colour is
defined in the rule:

body {
margin: 0px;
padding: 0px;
color: #33332e;
background: #000000;
font: normal 11px tahoma, geneva, verdana, sans-serif;
text-align: center;
}

To change the background colour of white (#ffffff) to gray (#dddddd), you would
add the following to this file:

body {
background: #dddddd;
}

If you also wanted to change the font as well as the background, then you could
use:

body {
background: #dddddd;
font: normal 12px times new roman;
}

Also note that every template's body id is assigned the template name (without
the .html extension). So if you want to change the h2 heading in the
category.html template, you can do this by:

#category h2 {
color: red;
font-weight: bold;
}

To start you off, some sample overriding styles have been provided below. Note
that you will have to uncomment the rules for them to work.
*/

/* Logo size and image source */
/*
#logo {
width: 250px;
height: 80px;
background-image: url(images/logo.gif);
}
*/
/* If the height of your logo changes from the original, then you will probably
want to also change the vertical position of the login link */
/*
#loginbar a {
margin-top: 25px;
}
*/

/* Show the left sidebar */
/*
#ocwrapper {
border-left-width: 200px;
}
#leftsidebar {
display: block;
}
#contentheader .error, #contentheader .message {
margin: 0px 200px 0px 200px;
}
*/

/* Hide the right sidebar */
/*
#ocwrapper {
border-right-width: 0px;
}
#rightsidebar {
display: none;
}
#contentheader .error, #contentheader .message {
margin: 0px;
}
*/

/* Change the right sidebar width. Note that the sidebars have a 10px left or
right padding (left sidebar has a left padding and right sidebar has a right
padding), hence the 150px - 10px = 140px width */
/*
#ocwrapper {
border-right-width: 150px;
}
#rightsidebar {
margin-right: -150px;
width: 140px;
}
#contentheader .error, #contentheader .message {
margin: 0px 150px 0px 0px;
}
*/

/* Change width of document */
/*
#wrapper {
width: 95%;
}
*/

/* Don't want the shadows? */
/*
.shadowtop, .shadowbottom, .shadowleft, .shadowright {
background: none;
}
.shadowtopleft, .shadowtopright, .shadowbottomleft, .shadowbottomright {
width: auto;
height: auto;
float: none;
background: none;
}
*/

/* If you change the globals category_cols or home_category_cols, then you will
need to change the width of the columns themselves. Note that IE sometimes has
problems if this value adds up to 100%, so keep the width a little under 100%.
For example, if you changed category_cols to 3, then this example would set
the width of the columns to 33% (99% total). If you want to change the columns
on the home page as well, then remember to set a rule for "#home dl" as well. */
/*
#category dl {
width: 33%;
}
*/


body { background: #000000; }
/* these colours are the same as defined by 'a', but we unset a:visited */
#loginbar a:hover {
color: white;
}

#header {
background: transparent url(images/swirls.gif) top right no-repeat;
}
#loginbar {
float: right;
text-align: right;
}
#loginbar a {
margin-top: 5px;
padding: 10px 65px 10px 0px;
color: #ff0000;
font-weight: bold;
display: block;
}

/*------------*\
|* navigation *|
\*------------*/
.navbar {
margin-bottom: 1px;
}
ul.primarynav, ul.secondarynav {
margin: 0px;
padding: 0px;
border-bottom: 1px solid #ffffff;
float: left;
list-style: none;
}
ul.primarynav {
width: 100%;
background: #5c5b66;
}
ul.secondarynav {
width: 100%;
background: #777c8d;
}
ul.primarynav li, ul.secondarynav li {
float: left;
list-style: none;
}
ul.primarynav li {
background: transparent url(images/betweennav.gif) bottom right no-repeat;
}
ul.primarynav a {
margin-right: 1px;
padding: 7px 9px 7px 10px;
float: left;
color: #ffffff;
font-size: 11px;
text-decoration: none;
}
ul.primarynav a:visited {
color: #ffffff;
}
ul.primarynav a:hover {
color: red;
background: #737180;
}
ul.primarynav li.home {
border-right: 1px solid #ffffff;
background: red;
}
ul.primarynav li.home a {
margin-right: 0px;
}
ul.secondarynav li.first {
padding-left: 5px;
}
ul.secondarynav a {
margin-right: 1px;
padding: 4px 5px;
float: left;
color: #ffffff;
font-size: 10px;
text-decoration: none;
}
ul.secondarynav a:visited {
color: #ffffff;
}
ul.secondarynav a:hover {
color: #212126;
}
.linklisting p.linkactions a, #detailed p.actions a, #jump_frame .actions a {
padding: 1px 4px;
border: 1px solid #bbbfa1;
font-size: 9px; font-weight: bold;
color: #ffffff;
text-decoration: none;
background: #ff0000;
}
.linklisting p.linkactions a:hover, #detailed p.actions a:hover, #jump_frame .actions a:hover {
background: #000000;
}

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Frames and browser issue HopeForYou 11243 Jun 25, 2009, 1:02 AM
Thread Re: [HopeForYou] Frames and browser issue
Andy 11109 Jun 25, 2009, 3:07 AM
Thread Re: [Andy] Frames and browser issue
HopeForYou 11097 Jun 25, 2009, 3:14 AM
Thread Re: [HopeForYou] Frames and browser issue
Andy 11093 Jun 25, 2009, 4:25 AM
Thread Re: [Andy] Frames and browser issue
HopeForYou 11056 Jun 25, 2009, 9:09 AM
Thread Re: [HopeForYou] Frames and browser issue
Andy 11090 Jun 25, 2009, 9:47 AM
Thread Re: [Andy] Frames and browser issue
HopeForYou 11101 Jun 25, 2009, 9:50 AM
Thread Re: [HopeForYou] Frames and browser issue
Andy 11056 Jun 25, 2009, 9:56 AM
Post Re: [Andy] Frames and browser issue
HopeForYou 11058 Jun 25, 2009, 10:02 AM