So, I’m trying to teach myself ASP.NET, HTML and CSS sort of all at once (I’ve got a book). At the moment it just went through using a CSS sheet to set what the output should look like. From what I can tell I followed the example in the book exactly, but my output doesn’t look like it should.
Here’s the CSS code
The visited and hovered links are just the normal color that they would always be (a browser default I assume). In fact links don’t change color at all when hovered over.
Also, the sidebar doesn’t seem to go where it should. It ends up below the main content and left justified. According to the book since the main content is 644 pixels and the sidebar is 200 they should be next to each other, but their not.
Any ideas?
Oh, I should also mention that if I do something, like, say, change the word Gray in the sidebar color to say Orange that will be reflected when I run the main code so I know the CSS sheet is linked in correctly.
A few suggestions:
[ul]
[li]Use Firefox. The FF addons are worth their weight in gold, irrespective that IE sucks as a web development tool.[/li][li]Don’t use CSS shortcuts during development. Define everything explicitly. Otherwise, you run a great risk of being unable to locate problems.[/li][li]Follow the KISS Principle. You gotta learn to walk before you can run.[/li][li]Do your development and self-learning with simple HTML. Build a simple web page (text, links and images) and understand how it functions before you start things such as forms.[/li][/ul]
Just fixing the “main content” syntax fixed everything:smack:. That was probably the third time I screwed up a space of missed a semicolon or something and everything went to hell.
Once you get the basics down, switching to a WYSIWYG (what you see is what you get) editor like Microsoft Expression or Adobe Dreamweaver will solve some of those problems. You can lay everything out graphically and only code when you need to manually fix something… no more forgotten semicolons
However, it’s definitely worth learning first how everything works behind the scenes – I hope the book teaches you that!
I’m using MS Visual Web Devolper, but the books teaches you how to enter content in several ways (right click menus, design view, actually typing). MainContent was one of the items that was typed in so that’s how I screwed that up.
Yea, hopefully this book helps. I’m not looking to design a whole webpage. We paid for our website to be designed. I just want to be able to tweak it here and there when I need to.
Besides it’s been about 12 years since I’ve done any programming, so it’s kinda fun.