Web Development Questions That Don't Need Their Own Thread v2
3,079 replies, posted
[QUOTE=robmaister12;32585995]I'll just go with Namecheap, domain registration price seems good, Value plan should be more than enough for a bunch of pictures and a few binaries.
Thanks guys.[/QUOTE]
I've never used them as a web host, but for something like that I guess it doesn't really matter
[QUOTE=Fleamonji;32589067]I've never used them as a web host, but for something like that I guess it doesn't really matter[/QUOTE]I used them briefly as a web host and the service was great.
Where does the "inherit" value in CSS get its value from?
[QUOTE=CoolCorky;32591292]Where does the "inherit" value in CSS get its value from?[/QUOTE]
It's parent.
As in:
[code]<div> <!-- Parent -->
<div> <!-- Inherit From ^ -->
</div>
</div>[/code]
Ah okay, thanks
Actually, is there any way I can tell a div box to use the height of another specified div box, that isn't its parent?
edit:
nevermind, I got around it by adding a retarded amount of padding onto each column I was dealing with, then adding an equal amount of negative margin (so the container still thought the content was the correct height), then hiding the overflow.
If anyone here knows anything about setting up mono for asp.net could you please PM I really need help.
[QUOTE=CoolCorky;32591419]Ah okay, thanks
Actually, is there any way I can tell a div box to use the height of another specified div box, that isn't its parent?
edit:
nevermind, I got around it by adding a retarded amount of padding onto each column I was dealing with, then adding an equal amount of negative margin (so the container still thought the content was the correct height), then hiding the overflow.[/QUOTE]
Why would you want to do that? Just give the div it's own height so you don't have to bitch with padding?
I'm assuming you know how to use id's, and if you know how to use id's then it really shouldn't be that hard.
If you can't figure out how to do it just pm me and ill help you out.
[QUOTE=CoolCorky;32591419]Ah okay, thanks
Actually, is there any way I can tell a div box to use the height of another specified div box, that isn't its parent?
edit:
nevermind, I got around it by adding a retarded amount of padding onto each column I was dealing with, then adding an equal amount of negative margin (so the container still thought the content was the correct height), then hiding the overflow.[/QUOTE]
Put those divs in the same class. I would disagree to using the id if you want your code to be robust when it comes to adding more things. In my opinion it's good to use ids to keep track of individual components of the page.
Also, what's the best way to add padding at the bottom of the page? Where my last div ends, margin:20px doesn't push the bottom of the page down. Why not?
[QUOTE=nos217;32596413]Put those divs in the same class. I would disagree to using the id if you want your code to be robust when it comes to adding more things. In my opinion it's good to use ids to keep track of individual components of the page.
[/QUOTE]
He is talking about individual components of the page? I really don't see how using id's would make your code less "robust".
[QUOTE=nos217;32596413]
Also, what's the best way to add padding at the bottom of the page? Where my last div ends, margin:20px doesn't push the bottom of the page down. Why not?[/QUOTE]
Most likely do you have some kind of footer at the bottom, which is inside the wrapper/outer right? Put the footer outside the wrapper/outer should push it to the bottom.
[QUOTE=mobrockers2;32596479]Most likely do you have some kind of footer at the bottom, which is inside the wrapper/outer right? Put the footer outside the wrapper/outer should push it to the bottom.[/QUOTE]
No I don't have a footer, I would just like a bit of a gap. Here's my website: [url]www.craigwilkinson.co.uk[/url]
If I try to add any content outside of the bounding div of main page content, it appears somewhere near the top of the page, underneath the blog and sidebar.
[QUOTE=nos217;32596560]No I don't have a footer, I would just like a bit of a gap. Here's my website: [url]www.craigwilkinson.com[/url]
If I try to add any content outside of the bounding div of main page content, it appears somewhere near the top of the page, underneath the blog and sidebar.[/QUOTE]
[img]http://dl.dropbox.com/u/5483751/Photos/2011-10-02_2352.png[/img]
??
Whoops, it's [url]www.craigwilkinson.co.uk[/url]
Instinct, I suppose.
[QUOTE=nos217;32596650]Whoops, it's [url]www.craigwilkinson.co.uk[/url]
Instinct, I suppose.[/QUOTE]
craigwilkinson.com will be available soon, you should buy it!
[editline]2nd October 2011[/editline]
It says it expired 2 months ago.
[QUOTE=nos217;32596650]Whoops, it's [url]www.craigwilkinson.co.uk[/url]
Instinct, I suppose.[/QUOTE]
First of all, you have style tags in your html while you could easily put them in your css.
Secondly, your body, for some reason, is only as big as half your page, so something is very wrong there.
[img]http://dl.dropbox.com/u/5483751/Photos/2011-10-03_0000.png[/img]
No HTML tag and the Title tag is not inside of the Head tags.
[editline]2nd October 2011[/editline]
Impressive design for somebody who doesn't know HTML.
[QUOTE=jaybuz;32596818]No HTML tag and the Title tag is not inside of the Head tags.
[editline]2nd October 2011[/editline]
Impressive design for somebody who doesn't know HTML.[/QUOTE]
What do you mean?
[img]http://dl.dropbox.com/u/5483751/Photos/2011-10-03_0010.png[/img]
[QUOTE=mobrockers2;32596891]What do you mean?
[img]http://dl.dropbox.com/u/5483751/Photos/2011-10-03_0010.png[/img][/QUOTE]
You do know modern browsers try their best to fix bad HTML. View the source, don't use the webkit developer tools.
[QUOTE=jaybuz;32597017]You do know modern browsers try their best to fix bad HTML. View the source, don't use the webkit developer tools.[/QUOTE]
I didn't know that the elements inspector didn't display the source, no.
Thanks for the tip ^^
[QUOTE=mobrockers2;32597042]I didn't know that the elements inspector didn't display the source, no.
Thanks for the tip ^^[/QUOTE]
it doesn't, but it does show when the doctype isn't declared by not showing one
I'll use the insults as a tip, fix it and move on. Thanks.
Yes, I have spent much more time playing around with graphical design than learning HTML, I've only done HTML (really) for about 2 weeks. I might have made a couple of mistakes, so what? We all have to start somewhere.
I managed to fix my problem, I had set "height:100%" in my main css file under the body attributes. I had been experimenting and forgot to remove it.
Okay so I added a doctype and moved all of the styles into the css document. But now I'm having some div troubles. They seem to be acting in a way I wouldn't expect them to. My home page seems to treat them slightly differently from my about page. Here's a screenshot to illustrate.
My about page treats my wrapper div as I would like it to:
[img]http://i.imgur.com/CokQb.png[/img]
But my home page does this:
[img]http://i.imgur.com/jighV.png[/img]
And it also treats my "main" div like this:
[img]http://i.imgur.com/8V9wV.png[/img]
I can't at all grasp why it's doing this. Any help would be appreciated.
In your css:
[code]
#wrapper
{
margin: 0 auto;
padding: 0;
}
[/code]
This fixes it, at my end it does at least.
That's odd, it didn't fix it over here.
[img]http://i.imgur.com/AFxcI.png[/img]
[QUOTE=nos217;32604242]That's odd, it didn't fix it over here.
[img]http://i.imgur.com/AFxcI.png[/img][/QUOTE]
Sorry, my bad. I had named your css 'style.css' instead of 'styles.css' so it seemed like it had worked, but all it did was not load the stylesheet :v:
That's what you get when you do things during a lecture.
[QUOTE=nos217;32604242]That's odd, it didn't fix it over here.
[img]http://i.imgur.com/AFxcI.png[/img][/QUOTE]
The wrong height is caused by floating both the main and side bar elements. When you float an element it becomes hidden to its parent element and that's why your wrapper div is has the wrong height because it doesn't really see any elements.
You can either add a div underneath both #main and #sidebar with the CSS property of clear: both; (This clears all floated elements above it so the space is viable again) or you can float the parent as well, in this case that would be div#main but at the minute the wrapper has no width and floating it to the left causes it to go to the very left side of the wrapper element which is the size of the window.
Hope this helps, floats can be a bit strange. I prefer absolute positioning myself because it works better a cross all browsers.
I'm currently learning HTML and CSS on HTMLDog.com, any ideas on what I should learn next?
[QUOTE=Xylem;32605186]I'm currently learning HTML and CSS on HTMLDog.com, any ideas on what I should learn next?[/QUOTE]
javascript, but i really dont know which site to tell you.
Tizag.com?
I just use w3schools for everything. Haters gun hate.
are there any good webdev extensions for chrome? i enjoyed using things like firebug and yslow on firefox but from looking through chrome addons lots of them have been pretty useless