Jump to content
juan.rojas89

Block Size

Recommended Posts

I have been using the <block-size: XX%;> property to prevent a table from resizing on different screens but I can't seem to get it right, what could I use to solve this?

this is an example of how I'm applying the code:

HTML


<div .div-central>

        <tr>example1</tr>

        <tr>example2</tr>

        <tr>example3</tr>

</div>

 

Css

 

.div-central {

block-size: 60%;

}

Share this post


Link to post
Share on other sites

You're not applying the CSS class to the element.  You use the class attribute to tell it which classes to use, you don't just write the CSS selector inside the HTML tag.

Share this post


Link to post
Share on other sites

Considering block-size is experimental and only works for Firefox browsers, why even think of using it? Also you can't use div within table how you have shown, only outside the table or within a table td element, which also must be within a tr element to take the text 'example#'.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...