This is a discussion on "My First CSS layout..." within the Web Page Design section. This forum, and the thread "My First CSS layout... are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
My First CSS layout...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
My First CSS layout...
Ok, I am redesigning the Beyond 2000 website in CSS per request of you's guys. I told you I would be posting here and finally I am. Here is the address of the site in question. http://www.justudios.com/B2k/ Now as you can see it looks horrid now, the menu bars are broken up, there is spaces in places that I don't want space, and my footer is floating up beside my content instead of below it. I have been working for several hours with no posotive changes so I decided it was time to post on the forumz.
Here is my stylesheet:
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
|
|
|
||||
|
Re: My First CSS layout...
Remove all the positioning (position: absolute; left: ...) and start using floats (float: left; or float: right)
There is no rule about the use of classed vs id apart from the fact that one can be used multiples times (class) in a document and the other only once (id). However, there is a common theme that you should using idea for sites' main areas like wrapper, header, sidebar, content and footer. The rest is less meaningful and should use classes. One more thing, you need to clear floats. |
|
||||
|
Re: My First CSS layout...
Ok, I'm going to use more floats if I can make it work. But one thing I don't understand. How do I make floats work (left) (right) when I have several different positions to post them.
FE:
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
Last edited by JustinStudios; Apr 5th, 2007 at 18:36. Reason: ligning up desing |
|
||||
|
Re: My First CSS layout...
I don't know how to use floats to display this layout. I see how to on 5 part layouts (header, Left, Mid, Right, Bottom) but mine has 2 extra pieces that make no sense
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
|
||||
|
Re: My First CSS layout...
You have to columns in there right? So ... I would do
So in this situation, you would have EEE, BBB and TTT in #content |
|
||||
|
Re: My First CSS layout...
Just to show you shorthand, this does exactly the same as your CSS that you posted in the thread topic (unless I made a careless mistake
|
|
||||
|
Re: My First CSS layout...
Do you have an updated link with the new code?
|
|
||||
|
Re: My First CSS layout...
Yes I have a link. Its what I have been working on and you can see it here: http://www.beyond2000software.com/karrine.htm . Notice its the code you put up for a basic layout and that I haven't actually styled anything except for the layout because I want to get that done first. Basically, my menu went stupid when i put list-style: none; and I can't imagine why it did that. Also, I am having wierd spacing issues in Internet Explorer and in Firefox, but they are completely different spacing issues...
If I can get 1 CSS Layout to work then maybe everything will come together; I am learning a lot of the syntax, but I don't know it all yet.
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
|
|||
|
Re: My First CSS layout...
You haven't closed your ul - you're missing the '/'. Also you're using extra markup just give the ul an id and get rid of that menu div. Also remove all of those classes and apply the nav-top.gif to the ul and the nav.gif to the ul#menu li a (the actual links). Save a lot of messing around.
Pete. |
|
||||
|
Re: My First CSS layout...
Ok ... here we go.
HTML
nav.jpg top-border.jpg |
|
|||
|
Re: My First CSS layout...
Sorry to butt in here, but I would move the sidebar (#menu) so it comes after the main content (#content) in the html, especially with this design. It can then be easily repositioned using css.
It does make things just a little more complex but it's worth doing this way in my opinion. Pete. |
|
|||
|
Re: My First CSS layout...
So it will, yeah. I should read post more closely really. Oops!
I just think it'd be better for seo, to display the main content first. Though if the html is clean it shouldn't make too much difference. But every little helps when it comes to seo, as I have been learning recently. Pete. |
|
||||
|
Re: My First CSS layout...
Karinne is awesome! Thank you soooo much! Yes, I can play around with it a good bit and I still have to style the text and everything, but the layout works and looks wonderful. I am confused somewhat as how you did some of the things you did, but they work well. For Example : the one image for highlight navigation, never seen that before, but it works like a charm!
Ok, guys, I have to work on this for a little while, but once I get the content (and my XHTML tags fixed) then I will repost the site all prettied up with special links to Karinne and Bruno89 for all their help! Thanks also to Ryan and Pete who have shown me many things as well!
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
|
||||
|
Re: My First CSS layout...
Quote:
Quote:
|
|
||||
|
Re: My First CSS layout...
Well as far as SEO goes for this site, with my current Tables coded Non-valid Code I am ranked #5 in search Engines... When I took the job they were currently ranked #175,000 so it has increased pretty well! But I want to get #1 so thats why I am going as far as to do the coding right, because I was told that would help tremendously!
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
|
|||
|
Re: My First CSS layout...
Give it a little while and you'll be wondering what all the fuss was about. It's just a nack and you'll pick it up in no time.
*whispers* I don't really like telling people this but it's actually that hard this css lark. Just don't let anyone know. Pete. |
|
||||
|
Re: My First CSS layout...
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
||||
|
Re: My First CSS layout...
Wow, where were you 2 weeks ago Moojoo when I needed you? lol one of those layouts is mine exactly
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
|
|
||||
|
Re: My First CSS layout...
Ahh the story of my life.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| css, layout |
| Thread Tools | |
|