General Discussion Undecided where to post - do it here. |
Reply to Thread New Thread |
![]() |
#1 |
|
I'm looking to overhaul a site I update this summer and would like some help with the CSS. I know (X)HTML well and I know how to code for CSS, but I'm not 100% on how to get those nice table-less layouts. I would rather not go the free template route.
I have used the WC3 schools site and found it very useful, but I would like more specific tips on layout and what not (nav-bars, banners, etc.). I can code, but I'm terrible at design. ![]() Cheers [thumbup] |
![]() |
![]() |
#2 |
|
|
![]() |
![]() |
#3 |
|
It's all using div. I learned by just looking at other people's css. I haven't really found any good tutorials so it has just been piecing together different guides and tinkering with it myself until I get the desired effect. You can tell just by looking below that I will get a box 900 pixels wide with a 1 pixel border around the whole thing. Not sure if I'm doing it exactly right, but it seems to work
![]() Code: Code
#content { font-family: verdana; width: 900px; margin: 10px auto; padding: 0 auto; background-color: #CCCCCC; border: solid; border-width: 1px; } Edit: You said you know the code, but you specify that particular "box" with the following in your html. Code: Code
<div id="content"> |
![]() |
![]() |
#4 |
|
Cheers, I got it sorted out. I have run into another problem though. Here is my barebones so far:
http://torch.cs.dal.ca/~whitlock/ You can see the problem. Anyone know how to remedy this? I assume some sort of javascript is needed? edit - Here is the CSS http://torch.cs.dal.ca/~whitlock/style.css |
![]() |
![]() |
#5 |
|
|
![]() |
![]() |
#6 |
|
Lots of nice layout examples here: ![]() Its just the content stretching problem now. I must say, I'm very pleased with myself! This is my first real crack at a CSS page and I think it looks fantastic so far. ![]() |
![]() |
![]() |
#7 |
|
I've fixed it! Does it look OK?
![]() NEW SITE: http://torch.cs.dal.ca/~whitlock/ OLD SITE: http://waverley.chebucto.org/ ![]() |
![]() |
![]() |
#8 |
|
|
![]() |
![]() |
#9 |
|
|
![]() |
![]() |
#10 |
|
The best layouts have the least HTML
For the footer, instead of using a div and a bunch of nav anchors, try making it an unordered list. It makes it easier to style because you can apply a class (or ID) to the UL, rather than each anchor. Code: Code
|
![]() |
![]() |
#11 |
|
For the footer, instead of using a div and a bunch of nav anchors, try making it an unordered list. Don't know if you want any critiques on the page or not, but one thing that I noticed immediately is that the site is very content heavy... Don't know if all that will go to their own pages once you finish or not. |
![]() |
![]() |
#12 |
|
I've always got the separation in the buttons in IE, no idea why. Must be IE's fault. You could try using |
![]() |
Reply to Thread New Thread |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|