CSS Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
CSS Topics
css tutorials Introduction
Types Types
Background Properties Background Properties
Text Properties Text Properties
Font Properties Font Properties
Box Properties BOX Properties
Border Properties Border Properties
Margin Properties Margin Properties
Padding Properties Padding Properties
Special Topics Special Topics
Forums Ask Your Doubts
Scraps More about CSS
Feedback Feedback
 




Scrollable Table (Html)


Tutorials Css

Topic

How to make a table/image with a scroll bar?
or
How to create a scrollable table?



Topic

Property:

On most occasions when we face such a requirement, it will be to fit some large viewable content inside a small area.
Follow the simple instructions.

Examples:
Large table inside a scroll view.
Large Image inside a scroll view.

It's simple to do it.
All that is needed is a small part of dhtml code.

<div STYLE=" height: 100px; width: 150px; font-size: 12px; overflow: auto;">

The portion "overflow: auto;" does everything.

To test.
Just copy the below code in a html file and check it.

<div STYLE=" height: 100px; width: 100px; font-size: 12px; overflow: auto;">
<table bgcolor="green">
<tr><td bgcolor="blue">testing </td></tr>
<tr><td>free php scripts;/td></tr>
<tr><td bgcolor="blue">free php scripts</td></tr>
<tr><td>free php scripts</td></tr>
<tr><td bgcolor="blue">free php scripts</td></tr>
</table>
</div>


The out put will be like this
Result:

www.hioxindia.com
maths.hscripts.com
www.hscripts.com
free php scripts
www.hiox4u.com

That's it.....




A Note
CSS - Cascading Style Sheets can be used along with html tags as explained in this site. This simple CSS will help you to create much elegant and neat html web pages. This does not need any additional softwares or codings. All web browser are capable of handing CSS codes.

Note 2: If required you can using <span> instead of <div> tags. div tag will start and end on new lines. span will not exceed the tag area.
Other Links

web hosting