• 0

CSS Site


Question

Well guys, the site I am about to show you of course is far from finished. It has no content, but the basic template and layout is all coded in XHTML/CSS. I'm quite pleased with myself because I bascially learnt how to code it all in one weekend, and to top it off. It's XHTML Strict :).

http://win-alt.com/testing/csstest.htm

Any comments guys, ways to improve, coding fixes, etc :)

Thanks.

Link to comment
https://www.neowin.net/forum/topic/238659-css-site/
Share on other sites

15 answers to this question

Recommended Posts

  • 0

hehe thanks. One little moan, I've found the opposite to what most say, they say that CSS/XHTML will look the same in all browsers. But it just doesn't, :p, I wasted about 3 hours on different bugs trying to make it look good in all the browsers. That is why a lot of people still use tables, but I'm going to be using CSS/XHTML for the rest of my sites now :)

Edited by Mx
Link to comment
https://www.neowin.net/forum/topic/238659-css-site/#findComment-584843826
Share on other sites

  • 0

A few points about your code,

* Personally I would never use CSS in the actual html file, look into external stylesheets.

* Post 1, Post 2, Post 3 would be a perfect place to use a list.

* You put all text in divs. I would have used <h1>,<h2>,<p>, etc.

Those images on the right don't really work when the window is resized. If you used float: right it would look better IMO.

I think it's a pretty good design but it's a little bland, the only bit of colour you've got are those things you stole from spreadfirefox. :p

Link to comment
https://www.neowin.net/forum/topic/238659-css-site/#findComment-584844159
Share on other sites

  • 0

W3C CSS Validator Results for http://win-alt.com/testing/csstest.htm

To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.

Errors

URI : http://win-alt.com/testing/csstest.htm

* Line: 122 Context : #sidebar

Parse Error - [empty string]

Warnings

URI : http://win-alt.com/testing/csstest.htm

* Line : 122 font-family: You are encouraged to offer a generic family as a last alternative

* Line : 122 Property align doesn't exist for media

Link to comment
https://www.neowin.net/forum/topic/238659-css-site/#findComment-584844362
Share on other sites

  • 0

Consolidation?

This -

/* Links */

a:link

{

text-decoration: none;

color: #505367;

}

a:visited

{

text-decoration: none;

color: #505367;

}

a:hover

{

text-decoration: none;

color: #61647C;

}

a:active

{

text-decoration: none;

color: #505367;

}

Becomes this -

/* Links */

a:link, a:visited, a:active

{

text-decoration: none;

color: #505367;

}

a:hover

{

text-decoration: none;

color: #61647C;

}

Link to comment
https://www.neowin.net/forum/topic/238659-css-site/#findComment-584847705
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Ashes of the Singularity II announced promising even larger battles, new faction, and more by Pulasthi Ariyasinghe A sequel for the 2016-released Ashes of the Singularity has officially been confirmed, and the original developer and publisher duo, Oxide Games and Stardock Entertainment, are back for this release too. Check out the debut trailer above. Ashes of the Singularity II is under development with a significantly expanded team compared to the original, according to today's announcement. It will be adding in a range of fresh units and gameplay systems for real-time strategy fans to dive into. More options for strategic gameplay, more intricate base building, and better enemy AI are listed as features for the new game as well. "Ten years ago, we set a new, literal benchmark for RTS games with massive battles and groundbreaking technology," said Brad Wardell, CEO of Stardock Entertainment. "With Ashes of the Singularity II, we’re raising the bar even higher, delivering strategic gameplay depth that RTS fans have always dreamed of.” The storyline of Ashes of the Singularity II will take place in 2031, with a complete single-player campaign, as well as cooperative and competitive multiplayer modes, being confirmed as features today. Moreover, a third faction is joining the fray this time, with Humans joining the fight alongside the original games' Post-Human Coalition and the Substrate. "Obviously, in the first game, the number one request was to have a human faction," adds Wardell. “Back then, we just couldn’t support having thousands of organic, walking, squishy people in the world and thus had to design in favor of machines. We’re really excited to bring the humans into the war and watch how they fare against the massive mechanical armies of the Substrate and PHC.” Ashes of the Singularity II is targeting a broad 2026 release window, with the team hoping to launch the title as the original celebrates its 10th anniversary. Its Steam store page is already up for wishlisting over here. Disclaimer: Neowin's relationship to Stardock
    • How exactly is a FREE image generation model a... Ponzi scheme?!?! I don't love all of these Gen-AI things flooding the market but there's nothing "ponzi" about it.
    • I can't decide if this is tacky or a really fun move for more casual players like myself to enjoy. I'll be curious to see how we are to fly to fictional land masses on a real globe.
  • Recent Achievements

    • One Month Later
      SamZrize earned a badge
      One Month Later
    • Week One Done
      SamZrize earned a badge
      Week One Done
    • One Year In
      SamZrize earned a badge
      One Year In
    • One Year In
      barracuda earned a badge
      One Year In
    • One Month Later
      barracuda earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      724
    2. 2
      +FloatingFatMan
      189
    3. 3
      ATLien_0
      179
    4. 4
      Xenon
      113
    5. 5
      neufuse
      109
  • Tell a friend

    Love Neowin? Tell a friend!