User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion
Register FAQ Members List Calendar Arcade Today's Posts

Reply
Thread Tools Display Modes
Unread 3 Jul 2004, 19:45   #1
meglamaniac
Born Sinful
 
meglamaniac's Avatar
 
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
HTML + CSS div tutorial?

I'm looking for a tutorial on how to build sites using HTML (or XHTML, don't mind) and CSS using div's instead of tables.
Suffice it to say I have no clue how the whole div thing operates so any suggestions gratefully accepted.

__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
meglamaniac is offline   Reply With Quote
Unread 3 Jul 2004, 20:17   #2
Androme
☆ ♥ 
 
Androme's Avatar
 
Join Date: Jan 2003
Posts: 3,489
Androme can only hope to improve
Re: HTML + CSS div tutorial?

www.alistapart.com - Bookmark it - has about every handy bit of XHTML & CSS bits you will need.

Look for the box model and other articles in the sections.
__________________
R3: LegioN (came #32) || R4: BlueTuba
R5: WolfPack Order || R6: Wolfpack
R7: Fury
----------retired-------
R52-R55: Apprime
R56-R57: FaceLess
R58-60: Apprime/Ultores
Androme is offline   Reply With Quote
Unread 3 Jul 2004, 20:19   #3
wu_trax
Registered User
 
Join Date: Jan 2003
Posts: 4,290
wu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet society
Re: HTML + CSS div tutorial?

whats wrong with tables?
__________________
im not tolerant, i just dont care.
wu_trax is offline   Reply With Quote
Unread 3 Jul 2004, 20:35   #4
Androme
☆ ♥ 
 
Androme's Avatar
 
Join Date: Jan 2003
Posts: 3,489
Androme can only hope to improve
Re: HTML + CSS div tutorial?

http://www.hotdesign.com/seybold/

Anyways, if you can code in CSS and XHTML cleanly, you really help out your Dial Up users, and still people on mobile devices with slow connections, because with the CSS, they do not need to reload the css tags every time to visit a new page, because they already have the old page in their cache.
__________________
R3: LegioN (came #32) || R4: BlueTuba
R5: WolfPack Order || R6: Wolfpack
R7: Fury
----------retired-------
R52-R55: Apprime
R56-R57: FaceLess
R58-60: Apprime/Ultores
Androme is offline   Reply With Quote
Unread 3 Jul 2004, 20:54   #5
wu_trax
Registered User
 
Join Date: Jan 2003
Posts: 4,290
wu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet society
Re: HTML + CSS div tutorial?

ok, never thought about that.
all my websites suck then :/
__________________
im not tolerant, i just dont care.
wu_trax is offline   Reply With Quote
Unread 3 Jul 2004, 23:09   #6
meglamaniac
Born Sinful
 
meglamaniac's Avatar
 
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
Re: HTML + CSS div tutorial?

My main reason for wanting to try it is that html+css+div makes much cleaner html files cos a lot of the layout, size and colour definitions are moved out of the html and over to the css file.
That way it (should) be much easier to produce pages where it's obvious what is going on.

Also if you've got css definitions for things you don't have to respecify it every time you want to add another element (such as a new item in your navigation bar for example), you just use the div class which is already define in the css so it's a lot easier to produce uniform looking pages.

Or so I'm given to understand anyway, which is why I want to try it.
__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
meglamaniac is offline   Reply With Quote
Unread 3 Jul 2004, 23:37   #7
wu_trax
Registered User
 
Join Date: Jan 2003
Posts: 4,290
wu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet society
Re: HTML + CSS div tutorial?

you're probably right. i just used xsl all the time in the last moth to transform xm-data into html, thats why i never thought much about how readable the resulting html-code is.
that css zen garden side is somewhat impressive
__________________
im not tolerant, i just dont care.
wu_trax is offline   Reply With Quote
Unread 3 Jul 2004, 23:51   #8
SYMM
Love's Sweet Exile
 
SYMM's Avatar
 
Join Date: May 2001
Location: Living on a Stair (Now Sword-less)
Posts: 2,371
SYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better placeSYMM single handedly makes these forums a better place
Re: HTML + CSS div tutorial?

W3schools has a good guide to CSS, I found it useful when learning, and now also as a reference when I forget the name of an attribute or similar.
__________________
--SYMM--
Ba Ba Ti Ki Di Do
SYMM is offline   Reply With Quote
Unread 4 Jul 2004, 03:09   #9
Androme
☆ ♥ 
 
Androme's Avatar
 
Join Date: Jan 2003
Posts: 3,489
Androme can only hope to improve
Re: HTML + CSS div tutorial?

I gave him the only link needed
__________________
R3: LegioN (came #32) || R4: BlueTuba
R5: WolfPack Order || R6: Wolfpack
R7: Fury
----------retired-------
R52-R55: Apprime
R56-R57: FaceLess
R58-60: Apprime/Ultores
Androme is offline   Reply With Quote
Unread 4 Jul 2004, 14:39   #10
meglamaniac
Born Sinful
 
meglamaniac's Avatar
 
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
Re: HTML + CSS div tutorial?

ok now i'm stuck.
I have this: http://www.megla.net/xhtml/index.html

I want the sidebar bit to extend all the way down to the footer div, in order to stop the main body text from "cutting under" the sidebar area.
Any ideas?
Here's the code.

Code:
XHTML for the document

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head>
<title>simple document</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

<body>

<div class="header">
	<p>Header</p>
</div>

<div class="bar">
	<div>
	<p>this is where the navigation bar would go</p>
	</div>
	<div>
	<p>a div a day keeps the doctor away</p>
	</div>
	<div>
	<p>well it seems to be working...</p>
	</div>

</div>


<div class="main">
	<p>
	this is a test to see if the sodding thing is going to wrap or not, and if not why not!! hey look it appears
	to be wrapping ok so at least i've finally got that sorted.	
	</p>
	<p>
	the only issue is that if i have
	lots and<br />
	lots and<br />
	lots and<br />
	lots and<br />
	lots and<br />
	lots of text like this, it pops under the navbar area.<br />
	Like this.<br />
	How do I stop it?!
	</p>
</div>

<div class="footer">
	<p>
	footer information
	</p>
</div>

</body>

</html>
Code:
CSS for the document

div.header {
	text-align: center;
	margin 0 0 0 2em;
	border-bottom: 1px dashed rgb(099,099,099);
}

div.bar {
	width: 20%;
	float: left;
	margin: 0 2em 0 0;
	border-right: 1px dashed rgb(099,099,099);
}


div.bar div {
  border-bottom: 1px dashed rgb(099,099,099);
  margin: 1em 0 0 0;
}


div.main {
	margin 0 0 2em 0
}

div.footer {
	text-align:center;
	clear: both;
}
__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
meglamaniac is offline   Reply With Quote
Unread 4 Jul 2004, 17:02   #11
meglamaniac
Born Sinful
 
meglamaniac's Avatar
 
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
Re: HTML + CSS div tutorial?

fixed
__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
meglamaniac is offline   Reply With Quote
Unread 8 Jul 2004, 10:10   #12
wu_trax
Registered User
 
Join Date: Jan 2003
Posts: 4,290
wu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet society
Re: HTML + CSS div tutorial?

thanks for this thread and thanks for that link.
finally layer menus almost without java script \o/
__________________
im not tolerant, i just dont care.
wu_trax is offline   Reply With Quote
Unread 9 Jul 2004, 18:32   #13
Leshy
Mr. Blobby
 
Leshy's Avatar
 
Join Date: Nov 2000
Location: Belgium
Posts: 8,271
Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.Leshy has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
Re: HTML + CSS div tutorial?

As soon as MSIE starts supporting :hover on anything but link elements, JavaScript menu's can go out the window altogether \o/
__________________
http://www.leshy.net
Leshy is offline   Reply With Quote
Unread 9 Jul 2004, 20:39   #14
JetLinus
Friendly geek of GD :-/
 
JetLinus's Avatar
 
Join Date: Nov 2000
Location: On my metal roid
Posts: 923
JetLinus has much to be proud ofJetLinus has much to be proud ofJetLinus has much to be proud ofJetLinus has much to be proud ofJetLinus has much to be proud ofJetLinus has much to be proud ofJetLinus has much to be proud ofJetLinus has much to be proud ofJetLinus has much to be proud ofJetLinus has much to be proud of
Arrow Re: HTML + CSS div tutorial?

Unfortunately this isn't completely translated to English, but the CSS section seems to be done...

http://en.selfhtml.org/


SelfHTML is the best compendium I know out there. They recently asked for donations to keep the (free) server running, and raised more than 20k euros.
__________________
[»] Entropy increases! :-/
JetLinus is offline   Reply With Quote
Unread 9 Jul 2004, 22:46   #15
Sundipper
Hourly Fee : $450
 
Sundipper's Avatar
 
Join Date: Oct 2000
Posts: 15
Sundipper is an unknown quantity at this point
Re: HTML + CSS div tutorial?

"unfortunately" is ALL in English but it has 6300617 bytes ..

CSS-2004

Say Hello
__________________
SunDipping; A Way of Living.
Sundipper is offline   Reply With Quote
Unread 10 Jul 2004, 01:59   #16
sayonara
Shai Halud
 
sayonara's Avatar
 
Join Date: Aug 2001
Location: Sunny Leeds \o/
Posts: 2,127
sayonara is just really nicesayonara is just really nicesayonara is just really nicesayonara is just really nicesayonara is just really nice
Re: HTML + CSS div tutorial?

Quote:
Originally Posted by wu_trax
whats wrong with tables?
Tables were always intended to be used for displaying tabulated data, and right through to the current HTML implementation they have been developed with that in mind.

Unfortunately, since early HTML did not have terribly great layout facilities, people started using tables to structure their documents. The drive now is to get people away from this habit, because it's an inefficient (and highly variable between authors) way of doing things, and causes all sorts of problems with cross-compatibility, accessibility etc.
__________________
meow
sayonara is offline   Reply With Quote
Reply



Forum Jump


All times are GMT +1. The time now is 12:25.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018