Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Wednesday, July 13, 2011

Fights and Blood

I wrote a post that my next game would be one of those strategy games that you create armies and fight and all in, but I know what it will be now! It's called Fights and Blood, and it will be a modern strategy game. Just a few of the great features will be in the game:

  • Create a place to live and gather a pirate army of fighters and spies.
  • Fight and sell to get goods and money.
  • The larger the army and the more coins means the stronger you are.
  • All in HTML(5), JavaScript, and CSS.
  • HTML5 LocalStorage used for storing data.
Please note that this game will be put up online but data stored will not be stored worldwide. Any information that you enter into the game will only be available on that specific computer and browser you used.

Sunday, May 29, 2011

Tip of the Day

Using classnames may stop you from using some inline CSS. For example, if you want to have navigation buttons and you want them to have a specified style, use CSS and a classname. Look it up on the web. You'll get tutorials on how to do it.

A useful tip. Most developers should know this already.

Sunday, May 15, 2011

Tip of the Day

Inline CSS should be done sparingly.

Like, for example, if you have buttons that are supposed to have the same style, give them a class and in the CSS coding make it so that anything with that class name has that style.

Just a tip. One that could save your day.

Saturday, May 14, 2011

Tip of the Day

One of the most efficient ways of making sidebars is: using CSS and the "table" element, and then inserting an iframe that shows a separate page, which would be your sidebar's content. You can do the same.

The coding below is the start of what you'll need:
<table>
<tr>
<td>Your left sidebar here</td>
<td>Your main content here</td>
<td>Your right sidebar here</td>
</tr>
</table>

So you should get the picture by now. Then we will add CSS to control the left and right sidebar's width, and we'll use CSS for the "iframe" elements inside the left and right sidebars to make the iframes as big as those "td" elements. That's what I did for my coding.

The "table" element should be set to as wide as you want, using CSS.

Just a tip. It's easier than doing lots of "div" elements. Hopefully useful. Your feedback is welcome.

Sunday, May 8, 2011

Tip of the Day

Avoid behaviors.

They are only supported in IE5+. Behaviors introduced dynamic content in CSS. You can do the same thing with CSS3 or JavaScript.

Most developers should already know this, but I have posted it just incase you don't.

Just a tip. Hopefully useful.

Saturday, April 23, 2011

Tip of the Day

Oh, yes, I'd like to announce the first "Tip of the Day". Every day, I'll post a new tip on something for developers that can be helpful.

Don't format with the <font> tag.

Many people use the font tag. It is a popular HTML tag and is easier than CSS, but it will be removed in the future from HTML (yes, and the latest browsers most likely won't support it anymore) and is not recommended by W3C. And we want our websites to be "cleanly coded", no? So if you want to style, don't forget that there is CSS out there. Like I said in an earlier blog post, CSS3 overpowers the non-standard "marquee" element.

So, I'm just telling you. No, I'm not making this up. W3Schools, the biggest developer site, says so. All styling will be done with CSS.