English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need the html code for the sidebar on the div tables

2006-10-22 03:59:48 · 4 answers · asked by ◦ Cυяισυѕєr ◦ 2 in Computers & Internet Programming & Design

4 answers

okay, your question was not clear, but what I understood is that you need to know how to get sidebar for DIV.
well, that is very easy.
let say you have following html code


blabla bla bla more bla bla b bla bla b bla bla b bla bla b bla bla b bla bla b bla bla b bla bla b bla bla b bla bla b bla bla b

now if you have lots of text inside this DIV and want to use scrollbar instead of lots space on your page, then all you need to do is specify the height of the div and then use overflow property to auto. for example : style='height:250px;overflow:auto'

asdfadfas asdf asd asdf
aasf asdf asdf as asfd

now when the DIV's height reaches 250px (or whatever you specify) browser will automatically show scrollbar on that DIV.

*** yahoo is cutting out the code it should read overflow:auto

2006-10-22 04:08:46 · answer #1 · answered by aalamin79 2 · 1 0

Do you mean you want to divide the page with a main section and a sidebar?
For that you'd have an id in your style sheet, lets say;

#sidebar{
with the attributes here as usual
}

and on the page you'd put

go to google, and type in html codes, or div codes, lots of options come up.

2006-10-22 04:06:23 · answer #3 · answered by Anonymous · 0 0

you can learn about htlm code from different website online

2006-10-22 04:08:53 · answer #4 · answered by Lord Glyde 2 · 0 0

fedest.com, questions and answers