Main Menu
  • Welcome to The RPG Maker Resource Kit.

Xhtml or CSS?

Started by Grafikal, December 21, 2008, 05:16:25 AM

0 Members and 1 Guest are viewing this topic.

Which do you prefer to code with?

Xhtml
4 (40%)
CSS
6 (60%)

Total Members Voted: 10

Moss.

lol @ correcting how I perceive something with my own eyes

I know exactly how the page was made, I'm just not impressed at all.

:tinysmile::tinysmile:

Kathryn

Personally i use both, i don't understand why one or the other must be used. Then again, i program webpages so rarely that i can't even really remember any HTML without reference beyond

<p>
<br>
<Table>
<tr>
<td>
<Body> and <Body background ="whatever.whatever"> and <Body bgcolour="">
<head>
<html>
<img>
<text colour ="">

.-.

Quote
You should have a look at CSS Zen Garden. Go through the different themes and check the markup of each one. You'll notice that it's the same, the layout is controlled entirely by the CSS. This is how CSS is meant to be used, but pretty much nobody (including myself) does it.

Yeah, they have some pretty crazy shit down there.

Grafikal

:mad: It was not intensional that I ask if you use ONLY one or the other. I wanted to know which side of it you prefer.

Roph

Quote from: *kitkatkan* on December 23, 2008, 03:17:22 AM
Personally i use both, i don't understand why one or the other must be used. Then again, i program webpages so rarely that i can't even really remember any HTML without reference beyond

<Body> and <Body background ="whatever.whatever"> and <Body bgcolour="">

<text colour ="">


So say you upload a bunch of pages written like that, wich a background="somefile.jpg" on each page's body tag. Then in the future, what if you want to change the background? You'd need to edit every single page that had that in the body tag. If those pages simply used a file called style.css, you could just edit the css file:

body {
background: #333 url(somefile.jpg) top left repeat-x;
}

Or whatever. The same goes for font tags. You want some text to stand out in your layoud so you make it red. But then later you decide to change your layout a bit and now blue would fit better. The old way you'd have to then go and edit all those font tags to make them blue, with css you could just edit the class that you should have assigned to your special text =)
[fright]bringing sexy back[/fright]

Leventhan

Yep, this way an external css divides content from presentation. While HTML provides the basic structure of the site's contect, CSS makes the site looks prettier, arranges the layout/positions, and loads the page quicker (with CSS sprites) so it's an all round improvement :)

CSS frameworks are there to speed up the process so we don't have to reinvent the wheel.

Be kind, everyone you meet is fighting a hard battle.

Grafikal

I always just compared CSS to InDesign's character/paragraph styles. Kinda like an omnistyle.

Kathryn

Quote from: Roph on December 23, 2008, 06:14:23 AM
Quote from: *kitkatkan* on December 23, 2008, 03:17:22 AM
Personally i use both, i don't understand why one or the other must be used. Then again, i program webpages so rarely that i can't even really remember any HTML without reference beyond

<Body> and <Body background ="whatever.whatever"> and <Body bgcolour="">

<text colour ="">


So say you upload a bunch of pages written like that, wich a background="somefile.jpg" on each page's body tag. Then in the future, what if you want to change the background? You'd need to edit every single page that had that in the body tag. If those pages simply used a file called style.css, you could just edit the css file:

body {
background: #333 url(somefile.jpg) top left repeat-x;
}

Or whatever. The same goes for font tags. You want some text to stand out in your layoud so you make it red. But then later you decide to change your layout a bit and now blue would fit better. The old way you'd have to then go and edit all those font tags to make them blue, with css you could just edit the class that you should have assigned to your special text =)
let me go into detail. When i want to set a scheme for things, i use css. But if i'm too lazy to look up the css or if i'm just going to change something once, i'll use the HTML. For example, if i'm going to make a layout, then i'm going to use css for all of that fancy stuff, but if i'm just going to make one page and i'm feeling particularly lazy i'll cheat with HTML.

we all do that, right?

:)

Quote from: *kitkatkan* on December 29, 2008, 02:23:47 AM
we all do that, right?

no :o I don't make even a portion of a page without css.

once you can write css without having to 'look it up' you won't need to put it in the html file.
Watch out for: HaloOfTheSun

Kathryn

alright, we all don't then  :tpg: