Jump to content

Starting with web-dev.

- - - - -

  • Please log in to reply
7 replies to this topic

#1
rasmush

rasmush

    Newbie

  • Members
  • Pip
  • 6 posts
Hello.

I'm just starting web-dev and im wondering if there are any special tips you have for a newbie, like any books or tutorials online to read. I've been using HTML and CSS some time but i'm no master at it, so i guess starting there and then moving on to PHP is a good start(?)

Thanks

#2
TheCompBoy

TheCompBoy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 272 posts
I like the Head First books.. They have a book called: "Head First HTML with CSS & XHTML"
I realy like their way of explaining things with pictures and such, Very easy to learn from their books.
Myself i never did any webdevelopement. So i can't help you much more.

Here is a link to Amazon for the book: http://www.amazon.co...L/dp/059610197X
Note: There probaly is better books, But in my opinion the Head First books are pretty good.
Think my post we're usefull? Please take your time and press the Like button at my post, Big Thanks!
For great C# & Android tutorials visit my blogg: http://www.thecompboy.com/

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
I like the tutorials at W3Schools Online Web Tutorials
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
rasmush

rasmush

    Newbie

  • Members
  • Pip
  • 6 posts
Attached File  asdasd.png   397.55K   16 downloads

Alright guys i've done some stuff with HTML & CSS, but i've got a problem now, that black box is a div inside a "Content div". What i would like is that the div inside the content div is centered, but i don't know how to do that.. Could anyone help me.. hehe?

The CSS codes for content div and black box div:

#content
{
background-color:#CCCCCC;
width:50%;
height:800px;
margin-top:230px;
margin-left:auto;
margin-right:auto;
border-bottom-right-radius:15px;
border-bottom-left-radius:15px;
border-top-right-radius:15px;
border-top-left-radius:15px;
}

#ran-pic
{
color:white;
width:300px;
height:200px;
background-color:black;
position:relative;
top:275px;
}

i know i can use the position:relative; with a left:100px thingy but i want it to be absolutely centered and i guess there must be some kind of way to achieve that..

#5
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
I'm pretty sure you could just throw in
margin-left:auto;
margin-right:auto;

and it will center.

That's what's centering the grey div. :)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#6
rasmush

rasmush

    Newbie

  • Members
  • Pip
  • 6 posts
I actually tried it, maybe i just had the wrong div id in the css so it wouldn't style it.. :o I'll try it again when i get home, but rest of the code is fine.. No big errors, like unneccessary code...? Thanks!

#7
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
The only thing I see that you could change is the border part. There is a shorter way to do this, which is:

-moz-border-radius: 15px;[COLOR=#006400] /*This will make the rounded corners appear in FireFox. */[/COLOR]
border-radius: 15px; [COLOR=#006400]/*Just gives all corners a round edge instead declaring each corner.*/[/COLOR]

As you can see it takes a different code to work on FireFox. You going to learn that making your site run on each browser that same way is not always fun. You should try to make sure your Site works Internet Explorer 6.0+, for other browsers this is a good article. Should We Support Old Versions of Good Browsers? ? Perishable Press

Good luck. :)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#8
rasmush

rasmush

    Newbie

  • Members
  • Pip
  • 6 posts
Alright i've taken a look on my website in different browsers now, and it seems that as always its IE that doesn't want to cooperate..... Only some minor errors in the layout in FF and Safari... Haven't tried Opera yet but i'm guessing it will be about the same errors as in FF and Safari, that the content div isn't centered....

Can anyone give me tips of more articles to read on how to optimize for other browsers..?

(Also bought myself some books about XHTML & CSS togheter with a PHP & mySQL book)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users