HighDots Forums  

Re: tabs using CSS

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: tabs using CSS in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
VK
 
Posts: n/a

Default Re: tabs using CSS - 01-27-2006 , 07:04 AM







listaction wrote:
Quote:
Folks,
I'm trying to implement a tabbed effect with CSS and HTML - no
graphics.
for some reason, i'm unable to control the width of the tabs. I've
pasted the code below.
.box1{
display:inline;
Just crossed with my own question...

.box1{
display: -moz-inline-box;
display: inline-block;

(you need block or inline-block for width / height to apply)



Reply With Quote
  #2  
Old   
listaction
 
Posts: n/a

Default Re: tabs using CSS - 01-27-2006 , 07:17 AM






that worked! VK thanks a lot for such a quick response.


Reply With Quote
  #3  
Old   
Spartanicus
 
Posts: n/a

Default Re: tabs using CSS - 01-27-2006 , 07:33 AM



"VK" <schools_ring (AT) yahoo (DOT) com> wrote:

Quote:
Folks,
I'm trying to implement a tabbed effect with CSS and HTML - no
graphics.
for some reason, i'm unable to control the width of the tabs. I've
pasted the code below.
.box1{
display:inline;

Just crossed with my own question...

.box1{
display: -moz-inline-box;
display: inline-block;

(you need block or inline-block for width / height to apply)
Not smart, inline-block is poorly supported in most slightly older
browsers.

--
Spartanicus


Reply With Quote
  #4  
Old   
VK
 
Posts: n/a

Default Re: tabs using CSS - 01-27-2006 , 07:37 AM




Spartanicus wrote:
Quote:
"VK" <schools_ring (AT) yahoo (DOT) com> wrote:

Folks,
I'm trying to implement a tabbed effect with CSS and HTML - no
graphics.
for some reason, i'm unable to control the width of the tabs. I've
pasted the code below.
.box1{
display:inline;

Just crossed with my own question...

.box1{
display: -moz-inline-box;
display: inline-block;

(you need block or inline-block for width / height to apply)

Not smart, inline-block is poorly supported in most slightly older
browsers.
Yup... That was a part of my question at:
<http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets/browse_frm/thread/c674a6548469179b/ad75d12650a1d2ed#ad75d12650a1d2ed>
(I was actually checking for replies when encountered this question).

IE 5.x (?), IE 6.x for sure, FF 1.0.4 or higher, Opera 8.x for sure.

If Safary 2.x or higher supports inline-block then I can live with it
in my particular solutions. But does it?



Reply With Quote
  #5  
Old   
Spartanicus
 
Posts: n/a

Default Re: tabs using CSS - 01-27-2006 , 07:53 AM



"VK" <schools_ring (AT) yahoo (DOT) com> wrote:

Quote:
Not smart, inline-block is poorly supported in most slightly older
browsers.

Yup... That was a part of my question at:
http://groups.google.com/group/comp....75d12650a1d2ed
(I was actually checking for replies when encountered this question).
Had you checked the archive there would have been no need to ask your
question, luckily for you the archive hasn't closed yet for the day, so
you can still use it.

--
Spartanicus


Reply With Quote
  #6  
Old   
VK
 
Posts: n/a

Default Re: tabs using CSS - 01-27-2006 , 09:24 AM




Spartanicus wrote:
Quote:
Had you checked the archive there would have been no need to ask your
question, luckily for you the archive hasn't closed yet for the day, so
you can still use it.
Indeed:
<http://homepage.ntlworld.com/spartanicus/ie_block_level_element_inline-block_hack.htm>
etc.

Everyone wants to be lazy sometimes... ;-)

Sorry.



Reply With Quote
  #7  
Old   
Lauri Raittila
 
Posts: n/a

Default Re: tabs using CSS - 01-29-2006 , 10:05 AM



in comp.infosystems.www.authoring.stylesheets, VK wrote:

Quote:
IE 5.x (?), IE 6.x for sure, FF 1.0.4 or higher, Opera 8.x for sure.

If Safary 2.x or higher supports inline-block then I can live with it
in my particular solutions. But does it?
Inline-block works somehow in all mentioned. This page is tested with
Opera 8.5, 9; IE6; FF1; Safari 2.0.2
http://www.student.oulu.fi/laurirai/www/css/gallery/

Extra code is needed for IE and FF, but nothing but CSS2.1 is used, and
fully CSS2.1 supporting browsers will show it as intended. I did not test
with bare inline-block on safari, but afaik it supports it.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.