Jump to content

Updating code

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1
wilk3sy

wilk3sy

    Newbie

  • Members
  • PipPip
  • 25 posts
Just wondering, if i make a website, and then want to add CSS to it, will it be a pain in the arse to add? or should i think about adding the CSS in the beginning.

im asking as i fancy starting a website, but dont know any CSS yet, and im wondering if i should wait until ive learnt it.

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
CSS can be applied after a website is designed. The glory of CSS is that you can set the styles of all anchors, and that style will be applied across all pages that use that CSS.

However, in many cases, you do not want EVERY link to have the same style, nor every table to have the same style. So that would require setting the elements class attribute, which I would find to be a pain in the arse after the site is complete.

So, CSS can be applied after a website is designed, but you would probably find it best to code the HTML and CSS simultaneously.

#3
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
Beside adding element class attributes, it can be annoying to remove all the attributes you've already given to all your tags, to get the site looking good in the first round.

I'll recommend you to use HTML and CSS when you start coding, instead of applying it later.

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
I just created a website for a project I had, and I had to use CSS and Valid XHTML Strict 1.0, some of my friends did not plan it well and they (after it was finished) applied CSS, but they had a very big problem, they had to edit all those pages, but I planned it well and done ONE HTML file with the template and CSS ready then I just copied and pasted it for the other pages and added the content. It is way easier and while I just took about 4 hours work my friends took them a whole week.. but f course it is up to you, it doesn't really make a difference to the result.

#5
wilk3sy

wilk3sy

    Newbie

  • Members
  • PipPip
  • 25 posts
cheers dudes! i need to get on the task soon! i bought 2 books, one teaching html, xhtml and css.... the other teaches ajax and php.

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Good luck to you then :) If you have any problems just ask.

#7
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Depending on how you design your website and CSS it may not be that difficult at adding CSS. If you don't know CSS or HTML I suggest you create a small "test" website in pure HTML first. Then you will learn the basics of HTML. Once you know it then move on to CSS and start adding tags or create a new website with CSS tags.

However, I agree with previous posts. In most cases it is better to add the CSS as you are creating the HTML.

#8
ReekenX

ReekenX

    Programmer

  • Members
  • PipPipPipPip
  • 134 posts
I am using Template Engines writed in PHP. Why? Because you can anytime change all site design, including images and css :)
www.jarmalavicius.lt | www.github.com/reekenx | www.twitter.com/reekenx

#9
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
Which template engine are you using? I only have a little experience with template engines using Python.

#10
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I've used Smarty a few times, never actually understood how to use it...

#11
ReekenX

ReekenX

    Programmer

  • Members
  • PipPipPipPip
  • 134 posts
Which I using? I have writed it my self! Som time ago I have used TinyButStrong, I think its small and very useful engine :)
www.jarmalavicius.lt | www.github.com/reekenx | www.twitter.com/reekenx

#12
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts

ReekenX said:

Which I using? I have writed it my self! Som time ago I have used TinyButStrong, I think its small and very useful engine
Oh, you wrote one yourself. I like the template engine Cheetah, but I don't think it's available for PHP though, only for Python. It has a really great syntax, it's easy to use, and you get some great results.

Sidewinder said:

I've used Smarty a few times, never actually understood how to use it...
I just checked Smarty's website. I think it looks pretty nice, and it has a simple an clean syntax. It looks a lot like Cheetah's.