Jul 26, 2008

Max Table Width

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..
Pages: 1, 2

free web hosting

Max Table Width

galexcd
QUOTE(Tyssen @ Oct 4 2005, 03:13 PM)
Not if they've got js turned off it won't.  dry.gif
And if you know what you're doing with CSS, there are work-arounds to get IE to accept min-width & min-height.
*



how many browsers do you know nowadays that dont have js enabled?
Only weird people dont enable js on their browsers, or they do it to tempararily test something.

Reply

Tyssen
QUOTE(qwertyiscool @ Oct 9 2005, 01:54 PM)
how many browsers do you know nowadays that dont have js enabled?
Only weird people dont enable js on their browsers, or they do it to tempararily test something.

It's not browers; it's users and you'd be surprised at the number. It's generally not something that individual users do, but rather IT departments looking after big networks of computers that only want users to have the minimum of functionality.

Reply

iGuest
My first time here, and I noticed this question on max-width.
The problem of course is that IE doesn't recognize that property, but there IS a way around it. Unfortunately, the line of code wont validate, but blame IE for that, for not having a decent browser!!

This will apply to a main content table too, so you can go full width, but stop it expanding beyond a certain point. Say 1000px, that way you don't get your line length too long for comfortable reading.

Suppose you want the table to expand to 500px, but no wider?
In your style sheet, put the max-width: 500px; in the correct place. (in the body} section)
Now, you need to define how your table displays with IE
so add in this.

table {
width:expression(document.body.clientWidth > 500? "500px": "auto" );
}


This is for IE....it will work on versions above 4.

What it's saying, is, is the table wider than 500px? If so, make it 500px....anything below will expand to an auto width.
Firefox will ignore this, and IE will ignore the max-width, so you need both of them.

Unfortunately, the ? will stop a clean validation, but thats about the easiest way around the problem. There are other solutions, using ems, but they are more complex.

If only IE would design a compliant browser, these sort of problems wouldn't arise!

Cheers, Jonny.

-Jonny

 

 

 


Reply

iGuest
thanks, man
Max Table Width

Jonny, thanks man. You not only helped me control my table width, you also opened up a new galaxy for me-- css expressions.

People named jonny are tops.

-reply by johny

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Recent Queries:-
  1. table max width - 1.19 hr back. (2)
  2. html table maximum width - 9.33 hr back. (1)
  3. html table max width printing - 16.31 hr back. (1)
  4. table max width html - 18.29 hr back. (2)
  5. table max-width - 8.79 hr back. (3)
  6. html tables max length - 30.76 hr back. (1)
  7. how to resize html table to max - 32.80 hr back. (1)
  8. ie table wont expand to width 100% - 38.35 hr back. (1)
  9. want max can i use on table - 39.27 hr back. (1)
  10. set maximum table width - 58.59 hr back. (1)
  11. what is maximum width of table - 59.99 hr back. (1)
  12. table max-width html - 60.04 hr back. (1)
  13. style max width javascript - 72.08 hr back. (1)
  14. css maximum table width - 75.27 hr back. (1)
Similar Topics

Keywords : max, table, width

  1. Width Of Display Area Of Browser Window
    is there a formula? (6)
  2. Ie Table Width In A Div Tag
    Table expands past screen at 100% (4)
    Hey everyone. I have been designing websites for a long time but i have recently decided to tryout
    the DIV layout technique instead of just using good old tables. However, this is the biggest problem
    i have come across. So I have a page where i need to have a table to display a whole bunch of
    details on armor in a game since the site is for players of final fantasy. However, when i do
    width="100%" so that the table expands the whole way to the side of the div so it looks the best it
    now will go past the edge and off the screen at 100%. Below is most of the code. Please h....
  3. Table Width Help
    table width="100%" goes off screen (2)
    Hey everyone. My problem is that current i have a left menu and a right menu which are created using
    a div the properties listed below. Then i have a center section to my website where i have a table
    that i need to fill the remaining space on the screen (aka the space from the right side of the left
    menu to the left side of the right menu). However, when i set the table's width to 100%, it goes
    of the screen. Can anyone help me with this? If you look at my main page, the news section works but
    only because the text forces the table to its largest size and then wraps.....
  4. Popup Window With Height And Width?
    (9)
    I will try to explain: When clicking on the link, a pop-up window will be opened. I also want to
    have the width=300 and height=160 (just examples /wink.gif' border='0'
    style='vertical-align:middle' alt='wink.gif' /> ) Could someone give me a short code for that?....
  5. Adding Width And Height To Page
    (8)
    how do you add width and height to your page? without adding it to your link you previously
    clicked... I mean, that the width and height should be included in the ORIGINAL page... i hope
    someone can help me with this... thanks in advance! /cool.gif' border='0'
    style='vertical-align:middle' alt='cool.gif' /> btw: i'm not that familiar with
    scripting.......

    1. Looking for max, table, width

Searching Video's for max, table, width
advertisement



Max Table Width



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE