![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
Making Tables With <div> Tags
How do you make "tables" with <div> tags?
__________________
If you need help with Java, you can go to javaforum.tk and get answers quickly. Programmer YouLikeJava = new JavaProgrammer("Eyvind"); YouLikeJava.printInfo(); YouLikeJava.setWeb("You Like Java?"); |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
It depends what you mean. Tables are still best created with table tags, but you can "float" items to the left or right by using the float CSS attribute:
<div style="float: right; margin: 0px 0px 16px 16px; border: 1px #000 solid;"> This is on the right. </div> <p>La de da. Random text to fill stuff up... blah-de-blah-de-blah-de-blah-de-blah-de-blah-de-blah-de-blah-de- blah-de-blah-de-blah-de-blah-de-blah-de-blah-de-blah-de-blah-de- blah-de-blah-de-blah-de-blah-de-blah-de-blah-de-blah-de-blah-de- blah-de-blah-de-blah-de-blah-de-blah-de-blah-de-blah-de-blah-de- blah-de-blah-de-blah-de-blah-de-blah.</p> Last edited by Ooble; Mar 21st, 2005 at 3:41 PM. |
|
|
|
|
|
#3 |
|
Professional Programmer
|
watch out with the float, it doesn't work quite well in Firefox
|
|
|
|
|
|
#4 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
I find it works better in Firefox than in IE. IE has the irritating habit of chopping off the bottom if the main text doesn't reach that far.
|
|
|
|
|
|
#5 |
|
Professional Programmer
|
really?
check http://www.thesloot.com/blog/ it's odd it doesn't quite do what i want, if you have a solution, pease feel free.. ![]() |
|
|
|
|
|
#6 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Looks fine to me. That's how it's supposed to work; if you want it different, use a table.
|
|
|
|
|
|
#7 |
|
Newbie
|
What I meant was, how do I use CSS to create a layout like this, which could have been done with tables but I heard tables are "bad":
1111111111111111111 0000222222222222222 0000222222222222222 0000222222222222222 0000222222222222222 3333333333333333333 (this is actually a very good idea, mapping out you web like that) and everything centered. How would I do this with CSS?
__________________
If you need help with Java, you can go to javaforum.tk and get answers quickly. Programmer YouLikeJava = new JavaProgrammer("Eyvind"); YouLikeJava.printInfo(); YouLikeJava.setWeb("You Like Java?"); Last edited by You Like Java?; Mar 21st, 2005 at 9:07 PM. |
|
|
|
|
|
#8 |
|
Newbie
|
haha I got it!
You just use float:left; and float:right;!!! so simple!, that way they move with resizing windows and different screen resolutions and with right text alignment, padding, and margins, it's perfect! (if anyone wants help with this now, I can help, ask for elaboration and I will show you exactly how I did it.)
__________________
If you need help with Java, you can go to javaforum.tk and get answers quickly. Programmer YouLikeJava = new JavaProgrammer("Eyvind"); YouLikeJava.printInfo(); YouLikeJava.setWeb("You Like Java?"); |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|