473,378 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

A couple of irritations

Have a look at www.manchesterCadet.org in the browser of your choice.

If you use Firefox, Opera or the like the menu on the right will have solid,
filled gradient titles (e.g. "Main Menu") and the menu items underneath
will have a background that fills the whole of the sidebar.

If you use IE the gradient stops at the bottom of the text, showing the
background graphic underneath. The menu items are only filled around the
text of the item.

Given that I am using the Joomla CMS to generate the page I don't have too
much control over the generated HTML. What can I do to fix the problems in
IE in the CSS?

As this site is a work in progress I would be happy to receive any other
criticisms before it goes properly live.

--
Colin Walls
Nov 22 '06 #1
2 1226
Colin Walls wrote:
Have a look at www.manchesterCadet.org in the browser of your choice.

If you use Firefox, Opera or the like the menu on the right will have solid,
filled gradient titles (e.g. "Main Menu") and the menu items underneath
will have a background that fills the whole of the sidebar.

If you use IE the gradient stops at the bottom of the text, showing the
background graphic underneath. The menu items are only filled around the
text of the item.

Given that I am using the Joomla CMS to generate the page I don't have too
much control over the generated HTML. What can I do to fix the problems in
IE in the CSS?

As this site is a work in progress I would be happy to receive any other
criticisms before it goes properly live.
Hello Colin

You didn't say which IE you were talking about, but I reproduced the
problem you described in IE6, so I think I know what the problem is.

I see you are using this:
html>body a.mainlevel { display:block; }

The html>body part comprise a child selector, meaning you want the rule
to apply only to (a.mainlevels which are descendents of) any <body>
element which is a child of <html(okay, they "all" are).

But IE < 7 doesn't understand the child selector, so the use of this
form in CSS is called the Child Hack, because it's a good (no arguments,
please) way to hide rules from IE.

See, among others, http://css-discuss.incutio.com/?page=ChildHack
See also http://blogs.msdn.com/ie/archive/2005/10/12/480242.aspx

Since the a.mainlevel selector alone ought to give you what you want, I
can only guess that earlier incarnations of the site tried to
deliberately do something special for IE. Now that hack is in the way.

I'm looking forward to hearing if this is the problem, of if I'm way off
track.

BTW, even when I see the photo on the front page it's not immediately
clear what your site is about. The word fencing does appear, but it's
way down near the end of the text. The text at the top starts talking
about photography, so I guessed at first it was either a photography
site, a general sports site, a site for some multi-discipline sports
competition, before I verified that it was indeed about sabre fencing at
the cadet level. Oh, and now that I write this, I see your meta
description says, "The only 6 weapon cadet tournament..." Could be clearer.

--
John
Nov 23 '06 #2
John Hosking wrote:

You didn't say which IE you were talking about, but I reproduced the
problem you described in IE6, so I think I know what the problem is.

I see you are using this:
html>body a.mainlevel { display:block; }

The html>body part comprise a child selector, meaning you want the rule
to apply only to (a.mainlevels which are descendents of) any <body>
element which is a child of <html(okay, they "all" are).
I'm looking forward to hearing if this is the problem, of if I'm way off
track.
Spot on - it wasn't a remnant of the site, but a remnant of some CSS I had
used previously for menus done properly. Thanks for that.
BTW, even when I see the photo on the front page it's not immediately
clear what your site is about. The word fencing does appear, but it's
way down near the end of the text. The text at the top starts talking
about photography, so I guessed at first it was either a photography
site, a general sports site, a site for some multi-discipline sports
competition, before I verified that it was indeed about sabre fencing at
the cadet level. Oh, and now that I write this, I see your meta
description says, "The only 6 weapon cadet tournament..." Could be
clearer.
For the moment I have simply moved the newsflash down to the bottom right, I
will put it somewhere more appropriate later. The front page text needs
rewriting anyway so I will make it clearer when I do this (and make the
site multi-lingual).

Thanks for your comments.

--
Colin Walls
Nov 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bjs | last post by:
I hope I've got the right group here and apologies if I haven't. I'm a hobby programmer and have just upgraded to Visual Basic.net and have a couple of questions if anybody can help. In VB 6...
5
by: Michael Foord | last post by:
I've come across a couple of 'features' in Python standard libraries - and I'm not sure if they're meant to be there... or if they're bugs... One in urllib2 and one in cgi. >>> from urllib2...
2
by: Jeremy Jones | last post by:
I've got a couple of new articles on ONLamp: Writing Google Desktop Search Plugins http://www.onlamp.com/pub/a/python/2005/06/01/kongulo.html and Python Standard Logging...
1
by: nay | last post by:
Hi I'm quiet new to .NET. I have to design a transactional procees, that pass through couple of asp.net pages. the data has a hierachial charactrasaion.(Like a wizard of that each page that...
1
by: hoochiegooch | last post by:
Hi, all. I have a couple of questions about NAnt. 1. Is there a better way to invoke NAnt from a C# "Master Test Rig" than shelling out? IOW, how should an ASP.NET web app or Windows Service...
19
by: chris | last post by:
Hello, I've recently been trying to understand the various structures supplied by c++, and the one I find most confusing is deque. One quick question about this. It seems most implementations...
21
by: Rob Somers | last post by:
Hey people, I read a good thread on here regarding the reason why we use function prototypes, and it answered most of my questions, but I wanted to double check on a couple of things, as I am...
1
by: dln | last post by:
Howdy. I'm a bit new to C# and got a couple of quick questions that perhaps someone can help me answer. First, is there a property that you set on a TextBox control that will force the control to...
2
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! I was testing an application that is writing a mail and sends it to a recieptiens. I then came across a couple of ??? in my head, coul anyone briefly tell me what the difference is between...
0
by: Newish | last post by:
Hi Couple of questions on datagrid 1) Is there a performance issue when using datagrid to display data from a datatable. 2) Is there a security issue when using datagrid to display data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.