473,386 Members | 1,621 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,386 software developers and data experts.

Trouble with Sliding Doors

I'm having some problems with Sliding Doors, as described in an article in A
List Apart (http://www.alistapart.com/articles/slidingdoors/) and as
detailed in the CSS Tab Designer v2.0 program.

My tabs look fine as long as I am using medium and small fonts but as soon
as I set the browser to use bigger fonts, they start to break on me. You can
see this best at http://sfl.london.on.ca/meetingsite.shtml. If you go to
this page with IE7 and your text size set to "medium", you'll see that I
have a nice row of 9 horizontal tabs. If you click on each one, you'll see
that everything works fine: all the tabs stay on one row, all nicely nestled
beside one another.

However, if you set the text size to "larger" or "largest" , you'll see that
the row of tabs wraps so that the last few items appear on a second line.
Now, I wouldn't have a problem with that if the lower row of tabs were
nicely aligned to the left of the lower row. Unfortunately, they are _not_
aligned to the left. Worse, if you start at the leftmost tab on the upper
row and work your way to the right, you can see that the positioning of the
lower row of tabs keeps changing and moving further to the right.

I've looked at the CSS and I'm at a loss to understand why this is
happening. Can someone with a clearer understanding of how this works please
help me figure out how to make those tabs behave better?

--

Rhino
Oct 24 '07 #1
12 1897
In article <ff**********@news.datemas.de>,
"rhino" <No***********************@anonymous.comwrote:
I'm having some problems with Sliding Doors, as described in an article in A
List Apart (http://www.alistapart.com/articles/slidingdoors/) and as
detailed in the CSS Tab Designer v2.0 program.

My tabs look fine as long as I am using medium and small fonts but as soon
as I set the browser to use bigger fonts, they start to break on me. You can
see this best at http://sfl.london.on.ca/meetingsite.shtml. If you go to
this page with IE7 and your text size set to "medium", you'll see that I
have a nice row of 9 horizontal tabs. If you click on each one, you'll see
that everything works fine: all the tabs stay on one row, all nicely nestled
beside one another.
I don't need to change the default text size in my browser to see the
effect, since I increased the default font size in the user style sheet
several eye prescriptions ago!

Simply resizing the window causes the same problem, too, so you may
want to look at setting a reasonable min-width value somewhere. The only
way I can get all your tabs lined up in a horizontal row, is to make the
text size too small to be legible.

I think part of your problem may lie here:

#content-col {
position: relative;
top: 0;
left: 12em;
padding-left: 35px;
float: left;
width: 87.5%;
}

If you set the width in em units to something that keeps all your tabs
in a row, does that work?
Oct 24 '07 #2
On 2007-10-24, rhino <No***********************@anonymous.comwrote:
I'm having some problems with Sliding Doors, as described in an article in A
List Apart (http://www.alistapart.com/articles/slidingdoors/) and as
detailed in the CSS Tab Designer v2.0 program.

My tabs look fine as long as I am using medium and small fonts but as soon
as I set the browser to use bigger fonts, they start to break on me. You can
see this best at http://sfl.london.on.ca/meetingsite.shtml. If you go to
this page with IE7 and your text size set to "medium", you'll see that I
have a nice row of 9 horizontal tabs. If you click on each one, you'll see
that everything works fine: all the tabs stay on one row, all nicely nestled
beside one another.

However, if you set the text size to "larger" or "largest" , you'll see that
the row of tabs wraps so that the last few items appear on a second line.
Now, I wouldn't have a problem with that if the lower row of tabs were
nicely aligned to the left of the lower row. Unfortunately, they are _not_
aligned to the left. Worse, if you start at the leftmost tab on the upper
row and work your way to the right, you can see that the positioning of the
lower row of tabs keeps changing and moving further to the right.

I've looked at the CSS and I'm at a loss to understand why this is
happening. Can someone with a clearer understanding of how this works please
help me figure out how to make those tabs behave better?
Your first float ("Time and Location") is a tiny bit taller than the
others. So when other floats fall down, and float towards the left, they
sort of snag on it and get stuck there before they reach the left of the
container.

This is the defined behaviour.

It looks like you're setting its padding-bottom to 5px, but it's 4px on
most of the others. I think it's the #overview a rule
(meetingsite.shtml: 22) that's the problem. Remove the padding-bottom:
5px from there and it should be OK.
Oct 24 '07 #3
David Stone wrote:
In article <ff**********@news.datemas.de>,
"rhino" <No***********************@anonymous.comwrote:
>9 horizontal tabs.

If you set the width in em units to something that keeps all your tabs
in a row, does that work?
That's not a good idea. Those of us who use larger type will need a
really wide window to get it all to fit or end up with excessive
horizontal scrolling. That can be way worse.

--
Berg
Oct 24 '07 #4

"Bergamot" <be******@visi.comwrote in message
news:5o************@mid.individual.net...
David Stone wrote:
>In article <ff**********@news.datemas.de>,
"rhino" <No***********************@anonymous.comwrote:
>>9 horizontal tabs.

If you set the width in em units to something that keeps all your tabs
in a row, does that work?

That's not a good idea. Those of us who use larger type will need a
really wide window to get it all to fit or end up with excessive
horizontal scrolling. That can be way worse.
Agreed! Having fixed widths in ems is what I'm trying to get AWAY from! I'm
keeping them in the index column so things degrade properly but otherwise
I'd try not to have them at all.

--

Rhino
Oct 25 '07 #5

"Ben C" <sp******@spam.eggswrote in message
news:sl*********************@bowser.marioworld...
On 2007-10-24, rhino <No***********************@anonymous.comwrote:
>I'm having some problems with Sliding Doors, as described in an article
in A
List Apart (http://www.alistapart.com/articles/slidingdoors/) and as
detailed in the CSS Tab Designer v2.0 program.

My tabs look fine as long as I am using medium and small fonts but as
soon
as I set the browser to use bigger fonts, they start to break on me. You
can
see this best at http://sfl.london.on.ca/meetingsite.shtml. If you go to
this page with IE7 and your text size set to "medium", you'll see that I
have a nice row of 9 horizontal tabs. If you click on each one, you'll
see
that everything works fine: all the tabs stay on one row, all nicely
nestled
beside one another.

However, if you set the text size to "larger" or "largest" , you'll see
that
the row of tabs wraps so that the last few items appear on a second line.
Now, I wouldn't have a problem with that if the lower row of tabs were
nicely aligned to the left of the lower row. Unfortunately, they are
_not_
aligned to the left. Worse, if you start at the leftmost tab on the upper
row and work your way to the right, you can see that the positioning of
the
lower row of tabs keeps changing and moving further to the right.

I've looked at the CSS and I'm at a loss to understand why this is
happening. Can someone with a clearer understanding of how this works
please
help me figure out how to make those tabs behave better?

Your first float ("Time and Location") is a tiny bit taller than the
others. So when other floats fall down, and float towards the left, they
sort of snag on it and get stuck there before they reach the left of the
container.

This is the defined behaviour.

It looks like you're setting its padding-bottom to 5px, but it's 4px on
most of the others. I think it's the #overview a rule
(meetingsite.shtml: 22) that's the problem. Remove the padding-bottom:
5px from there and it should be OK.
You are mostly right. I _did_ have 5px padding-bottom on most of the tabs
but forgot it entirely on some of the tabs. As soon as I removed it from all
of the tabs, the tabs lined up nicely.

Thanks for responding!

--

Rhino
Oct 25 '07 #6
rhino wrote:
"Bergamot" <be******@visi.comwrote in message
news:5o************@mid.individual.net...
>You could find these things yourself with the Web Developer extension
for Firefox/mozilla.

I'd never heard of the Web Developer plugin but quickly found it with a
Google search and installed it. (I had hoped there would be a way to list
available plugins from the browser itself but couldn't find anything like
that.)
(At least my version of) Firefox has two places where links take you to
a list of extensions (a.k.a. plug-ins or add-ons).

The default bookmarks include a folder called "Firefox and Mozilla
Links", under which is a link to "Themes and Extensions". Go see.

Or you can go to the Menu item Tools, then Extensions, which brings up a
little dialog listing all your currently installed extensions. At the
bottom is a link "Get More Extensions". Go to that page and "Browse
Extensions by Category".

These two links go to slightly different places but you can see the
available add-ons for FF this way.
--

Rhino
If you add a trailing space to the two dashes above, you will have a
working sig separator, meaning that your sig will automatically be
trimmed when being replied to using good newsreaders, and many
newsreaders will show the sig in a different fontface or style, setting
it apart from the message. (OE isn't one of these.)
--
John
Pondering the value of the UIP: http://improve-usenet.org/
Oct 25 '07 #7
rhino wrote:
>
"Bergamot" <be******@visi.comwrote in message
news:5o************@mid.individual.net...
>rhino wrote:
>>>
http://sfl.london.on.ca/meetingsite.shtml. If you go to
this page with IE7 and your text size set to "medium", you'll see that I
have a nice row of 9 horizontal tabs.

You must be using a larger browser window than I. I see 3 rows, plus I
get horizontal scrolling. :(
My screen resolution is 1280 x 1024 and I am running IE7 with text size set
to "medium". That translates to one row of tabs for me ;-)
My screen size is 1440 x 1050. I'm getting two rows of tabs and a H
scroll bar.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Oct 25 '07 #8
rhino wrote:
>
I completely forgot about the padding because it is not in the main CSS;
instead, it is in the individual shtml file.
I suggest putting it in the external CSS file. There's no reason to put
some styles in the HTML unless it's unique to just that page. If it's
something unique to one section of the site, it makes more sense to have
a second external CSS file. Then all the CSS is still in one place, plus
it will be cached by the browser.

--
Berg
Oct 25 '07 #9
In article <ff**********@news.datemas.de>,
"rhino" <No***********************@anonymous.comwrote:
"Bergamot" <be******@visi.comwrote in message
news:5o************@mid.individual.net...
David Stone wrote:
In article <ff**********@news.datemas.de>,
"rhino" <No***********************@anonymous.comwrote:

9 horizontal tabs.

If you set the width in em units to something that keeps all your tabs
in a row, does that work?
That's not a good idea. Those of us who use larger type will need a
really wide window to get it all to fit or end up with excessive
horizontal scrolling. That can be way worse.

Agreed! Having fixed widths in ems is what I'm trying to get AWAY from! I'm
keeping them in the index column so things degrade properly but otherwise
I'd try not to have them at all.
My mistake - I thought you _wanted_ them to all stay on one line.

One thing you might still want to look at is the initial heading
and paragraphs in your content-main div ("Meeting Time and Location")

In FF 2.0.0.8 (on my Mac), the actual text of ALL the paragraphs
disappears behind the vertical scroll bar of the window, even with the
window maximised on my 1152 x 720 display. As I mentioned earlier,
the ONLY way I can get the text to by fully visible is by reducing the
text size to the smallest possible size, at which point I can no longer
read the characters. FWIW, I have the default font sizes in FF for both
serif and san-serif fonts set at '16' (whatever that actually means!)

You might want to either make the width a smaller percentage, or
apply a padding-right to allow for the width of the scroll bar?
Oct 25 '07 #10

"John Hosking" <Jo**@DELETE.Hosking.name.INVALIDwrote in message
news:47**********@news.bluewin.ch...
rhino wrote:
>"Bergamot" <be******@visi.comwrote in message
news:5o************@mid.individual.net...
>>You could find these things yourself with the Web Developer extension
for Firefox/mozilla.

I'd never heard of the Web Developer plugin but quickly found it with a
Google search and installed it. (I had hoped there would be a way to list
available plugins from the browser itself but couldn't find anything like
that.)

(At least my version of) Firefox has two places where links take you to a
list of extensions (a.k.a. plug-ins or add-ons).

The default bookmarks include a folder called "Firefox and Mozilla Links",
under which is a link to "Themes and Extensions". Go see.
I'm on Firefox 2.0.0.8 and I found it under Bookmarks/Mozilla
Firefox/Customize Firefox.

I doubt I would ever have stumbled on that on my own so thanks for pointing
that out.
Or you can go to the Menu item Tools, then Extensions, which brings up a
little dialog listing all your currently installed extensions. At the
bottom is a link "Get More Extensions". Go to that page and "Browse
Extensions by Category".
On my copy of Firefox, I have Tools/Add-ons. I found this before my original
post. Unfortunately, it does _not_ have a "Get More Extensions" option,
just a "Find Updates" button which only finds updates for extensions you
already have.
These two links go to slightly different places but you can see the
available add-ons for FF this way.
Apparently, the Firefox developers decided that it was too easy to find
extensions in the past and decided to make it harder. Seriously, I don't
think I ever would have looked in the Bookmarks/Mozilla Firefox to see if
there was anything to do with finding extensions there.
>--

Rhino

If you add a trailing space to the two dashes above, you will have a
working sig separator, meaning that your sig will automatically be trimmed
when being replied to using good newsreaders, and many newsreaders will
show the sig in a different fontface or style, setting it apart from the
message. (OE isn't one of these.)
I would have thought the two consecutive dashes on a line by itself was
already plenty but you need to add a trailing space AND an empty line....
And even then it doesn't work on a popular newsreader like OE. Hardly seems
worth the bother....

--

Rhino
Oct 27 '07 #11

"rhino" <No***********************@anonymous.comwrote in message
news:ff**********@news.datemas.de...
>
"John Hosking" <Jo**@DELETE.Hosking.name.INVALIDwrote in message
news:47**********@news.bluewin.ch...
>rhino wrote:
>>"Bergamot" <be******@visi.comwrote in message
news:5o************@mid.individual.net...
>>>You could find these things yourself with the Web Developer extension
for Firefox/mozilla.
I'd never heard of the Web Developer plugin but quickly found it with a
Google search and installed it. (I had hoped there would be a way to
list available plugins from the browser itself but couldn't find
anything like that.)

(At least my version of) Firefox has two places where links take you to a
list of extensions (a.k.a. plug-ins or add-ons).

The default bookmarks include a folder called "Firefox and Mozilla
Links", under which is a link to "Themes and Extensions". Go see.
I'm on Firefox 2.0.0.8 and I found it under Bookmarks/Mozilla
Firefox/Customize Firefox.

I doubt I would ever have stumbled on that on my own so thanks for
pointing that out.
>Or you can go to the Menu item Tools, then Extensions, which brings up a
little dialog listing all your currently installed extensions. At the
bottom is a link "Get More Extensions". Go to that page and "Browse
Extensions by Category".
On my copy of Firefox, I have Tools/Add-ons. I found this before my
original post. Unfortunately, it does _not_ have a "Get More Extensions"
option, just a "Find Updates" button which only finds updates for
extensions you already have.
>These two links go to slightly different places but you can see the
available add-ons for FF this way.
Apparently, the Firefox developers decided that it was too easy to find
extensions in the past and decided to make it harder. Seriously, I don't
think I ever would have looked in the Bookmarks/Mozilla Firefox to see if
there was anything to do with finding extensions there.
Oops! I missed a link called "Get Extensions" on the Tools/Add-ins dialog. I
take back my snarky remark about Firefox foolishly removing a link from the
logical place. My mistake!
>>--

Rhino

If you add a trailing space to the two dashes above, you will have a
working sig separator, meaning that your sig will automatically be
trimmed when being replied to using good newsreaders, and many
newsreaders will show the sig in a different fontface or style, setting
it apart from the message. (OE isn't one of these.)
I would have thought the two consecutive dashes on a line by itself was
already plenty but you need to add a trailing space AND an empty line....
And even then it doesn't work on a popular newsreader like OE. Hardly
seems worth the bother....

--

Rhino


Oct 27 '07 #12
On Sat, 27 Oct 2007 20:12:24 +0200, rhino
<No***********************@anonymous.comwrote:
>If you add a trailing space to the two dashes above, you will have a
working sig separator, meaning that your sig will automatically be
trimmed
when being replied to using good newsreaders, and many newsreaders will
show the sig in a different fontface or style, setting it apart from the
message. (OE isn't one of these.)
I would have thought the two consecutive dashes on a line by itself was
already plenty but you need to add a trailing space AND an empty line....
Nope, not an empty line, a newline character...
And even then it doesn't work on a popular newsreader like OE.
Which is why a lot of people use OE Quotefix for it, which does make it
recognize it.
Hardly seems
worth the bother....
Well, almost every other newsreader automatically recognizes a signature,
so what is the bother to make a correct seperator _once_ and keeping it? 2
seconds of your time to prevent irritation of potentially dozens or
hundreds of readers seems quite a good investment of time IMHO.||

(Oh: and for people claiming my sig seperator is broken: that's a known
Thunderbird/SeaMonkey bug...)
--
Rik Wasmus
Oct 27 '07 #13

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

Similar topics

11
by: Jake j | last post by:
Yes, this is a simple and straightforward thing to do as long as the .js file doesn't use a function. When I try a script with a function in a js file I can't get it to work (though it works fine...
24
by: deko | last post by:
I have an mdb (2002 file format) that uses memo fields extensively. I've read a lot about how problematic memo fields can be and that avoiding them is a good idea. But I'm stuck with them and was...
1
by: Guadala Harry | last post by:
AFAIK, when placing an object into the Cache with no special instructions (no dependencies, sliding expirations, hard expirations, etc), it will just sit there in the Cache until the system decides...
2
by: Lonewolf | last post by:
Hi, does anyone know of a way to do sliding window similar to WMP 9's slider bar which can slide up when the mouse gets to the bottom of the screen in fullscreen mode during playback. Basically...
4
by: circleandy | last post by:
I got a set of links (Previous & Next) that have basically the same css styling. The only difference is that one has reversed images and reversed padding-left/right. Both buttons work in FF and...
1
by: Shane Lillie | last post by:
I've got a bit of code that looks like this: for i in xrange(1000): # shuffle the doors doors = random.shuffle(doors) # save the doors that have goats (by index) goats = == 'G' ]
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.