Media Lab Forums Forum Index Media Lab Forums
These forums are officially closed. Please direct questions and comments to the new user forums at http://medialab.zendesk.com/forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Width question

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Media Lab Forums Forum Index -> WellRounded
View previous topic :: View next topic  
Author Message
pete



Joined: 20 Oct 2005
Posts: 2

PostPosted: Thu Oct 20, 2005 5:04 am    Post subject: Width question Reply with quote

Hello,

I was wondering if it is possible to assign a value of "auto" to the width of the main containing div, so that the content actually dictates the size of the complete WellRounded box?

It seems to work ok in firefox and netscape, but when viewed in IE, the box expands the full length of the browser window.

I would like to have one "generic" wellrounded box definition in CSS and let our php code/database information change the box dimensions.

Thanks a lot!!
Pete
Back to top
View user's profile Send private message
Chris Perkins
Site Admin


Joined: 29 Sep 2005
Posts: 5665

PostPosted: Thu Oct 20, 2005 6:17 pm    Post subject: auto width Reply with quote

I think you've answered your own question. width: auto; works in firefox and netscape, but not IE6.

It'll probably work in IE7, so it may be just a matter of time. You should check Safari too.


If you are using PHP, then you could potentially have PHP write out the WellRounded rect, in which case the PHP would be able to set the width based on the content size.

Another option would be to use Javascript. We have a tutorial that uses javascript to dynamically set the height of WR rects. That same technique could be used to set the width dynamically too.

Chris
Back to top
View user's profile Send private message
pete



Joined: 20 Oct 2005
Posts: 2

PostPosted: Thu Oct 20, 2005 9:39 pm    Post subject: Reply with quote

Chris,

Thanks for the help! Ill try to write something in php to get the results we are after.

Pete
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Media Lab Forums Forum Index -> WellRounded All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group :: Spelling by SpellingCow.