d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Question On Padding Vs. Left > Same Thing?
Prev123Next
Add Reply New Topic New Poll
Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Feb 19 2013 10:46pm
Dumb phone. I fixed my problem the other day though. I was confused on how padding worked at the time.

Quote (AbDuCt @ 19 Feb 2013 23:42)
that must be a pretty useless programming degree


How's that?

This post was edited by NinjaSushi2 on Feb 19 2013 10:47pm
Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Feb 19 2013 11:26pm
Quote (Ralphdp @ 19 Feb 2013 16:19)


Code
<style>
#master{
width: 1000px;
margin:0 auto;
}

#content
{
margin:140px 0 auto;
padding: 0px;
border: 1px solid #000;
background-color:#fff;
width: 950px;
height: 800px;
margin:0 auto;
}
</style>

<div id="master">
<div id="content">
</div>
</div>


You really don't need a master container.
In fact you can remove all traces of it.. Unless you need that there for some other reason that I don't see..

If indeed this is the effect you are trying to get...

This is what I am understanding from your question.

Why don't you post your ENTIRE code..

I hope this made sense...
He is unfortunately teaching you a programming lesson that is outdated and that needs to be scrapped.


I reread what you said; he is teaching us the basics, etc. Now we are learning about style codes and more on divs, how to do images, etc. I think next week we learn how to input video and audio and get into more advance things.
Member
Posts: 14,687
Joined: Mar 7 2004
Gold: 1,833.00
Feb 20 2013 06:02am
Quote (NinjaSushi2 @ Feb 20 2013 12:26am)
I reread what you said; he is teaching us the basics, etc. Now we are learning about style codes and more on divs, how to do images, etc. I think next week we learn how to input video and audio and get into more advance things.


i understand.. but these are basics based on standards years ago.. there are new standards that are still very basic that should have replaced these old standards. a professional in web development knows this...
what's ashame is that this course is not focusing on establishing a solid foundation on web development. it sounds more like he is just teaching you a quick/dirty way of learning how to understand and and do general web programming. I know you said this is just a side course for your programming degree but as a web programmer this hurts to see how he is teaching you..

php is a whole other animal... but it plays well with html and css.

you should check this site out in between lessons. they will touch on the basic fundamentals on all html and css properties..
http://www.w3schools.com/html/default.asp

im not saying your professor is wrong, he is just stuck in past..

and sorry, there was an error im code:

Code
<style>
#master{
width: 1000px;
margin:0 auto;
}

#content
{
margin:140px 0 auto;
padding: 0px;
border: 1px solid #000;
background-color:#fff;
width: 950px;
height: 800px;
}
</style>

<div id="master">
<div id="content">
</div>
</div>


Sorry if this was not the answer you were looking for here on the forums.. but I can assure you, that this is the EASIEST most updated way to do this..
Glad you managed to figure it out though. :)

This post was edited by Ralphdp on Feb 20 2013 06:15am
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Feb 20 2013 07:36am
Quote (NinjaSushi2 @ Feb 19 2013 11:46pm)
How's that?


If it's really a programming degree you wouldn't start with html/css or even web for that matter.

You'd get an understanding with some vb (most of the time) then move on to a c-oriented language or python/perl etc..
Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Feb 20 2013 02:48pm
Quote (Ralphdp @ 20 Feb 2013 07:02)
i understand.. but these are basics based on standards years ago.. there are new standards that are still very basic that should have replaced these old standards. a professional in web development knows this...
what's ashame is that this course is not focusing on establishing a solid foundation on web development. it sounds more like he is just teaching you a quick/dirty way of learning how to understand and and do general web programming. I know you said this is just a side course for your programming degree but as a web programmer this hurts to see how he is teaching you..

php is a whole other animal... but it plays well with html and css.

you should check this site out in between lessons. they will touch on the basic fundamentals on all html and css properties..
http://www.w3schools.com/html/default.asp

im not saying your professor is wrong, he is just stuck in past..

and sorry, there was an error im code:

Code
<style>
#master{
width: 1000px;
margin:0 auto;
}

#content
{
margin:140px 0 auto;
padding: 0px;
border: 1px solid #000;
background-color:#fff;
width: 950px;
height: 800px;
}
</style>

<div id="master">
<div id="content">
</div>
</div>


Sorry if this was not the answer you were looking for here on the forums.. but I can assure you, that this is the EASIEST most updated way to do this..
Glad you managed to figure it out though. :)


Thanks friend. Yeah w3schools is a great website. I've been using that as a reference for all my projects. I'll bring it up next class, which is on Mondays at 1800, and see why he is teaching the older, outdated stuff. Maybe he can give everyone a decent answer.

Quote (0n35 @ 20 Feb 2013 08:36)
If it's really a programming degree you wouldn't start with html/css or even web for that matter.

You'd get an understanding with some vb (most of the time) then move on to a c-oriented language or python/perl etc..


Yeah I know. It's called filler classes. If any of y'all ever went to school, you'd know how college works. :lol:

I wanted to learn some minimal web design so I chose that. I've also studied alice and some visual basic. Next semester I do Java Objective Oriented and C. Then C++ and possibly C# or data systems. Then I hope to get into CMU after this.

This post was edited by NinjaSushi2 on Feb 20 2013 02:53pm
Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Feb 20 2013 02:51pm
Double post.

This post was edited by NinjaSushi2 on Feb 20 2013 02:51pm
Member
Posts: 20,464
Joined: Dec 31 2006
Gold: 131.00
Feb 24 2013 08:39pm
who cares about padding just chuck a

Code

-moz-box-sizing: border-box;
-webkit-box-sizing:
border-box; box-sizing: border-box;


on there
Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Feb 24 2013 09:06pm
Not that far yet and this thread closed anyways. ;)
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Feb 24 2013 10:34pm
Quote (NinjaSushi2 @ Feb 20 2013 03:48pm)
Thanks friend. Yeah w3schools is a great website. I've been using that as a reference for all my projects. I'll bring it up next class, which is on Mondays at 1800, and see why he is teaching the older, outdated stuff. Maybe he can give everyone a decent answer.



Yeah I know. It's called filler classes. If any of y'all ever went to school, you'd know how college works.  :lol:

I wanted to learn some minimal web design so I chose that. I've also studied alice and some visual basic. Next semester I do Java Objective Oriented and C. Then C++ and possibly C# or data systems. Then I hope to get into CMU after this.


My filler classes are more than likely what you're taking to get your degree by the looks of a what they're teaching you and how you fail to understand anything we've posted.
Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Feb 24 2013 11:14pm
Quote (0n35 @ 24 Feb 2013 23:34)
My filler classes are more than likely what you're taking to get your degree by the looks of a what they're teaching you and how you fail to understand anything we've posted.


Oh? Where do you go to school and what are you going for?
Go Back To Programming & Development Topic List
Prev123Next
Add Reply New Topic New Poll