Customizing SMF > Graphics and Templates

Default Theme Sizes

<< < (2/2)

Antechinus:
Yeah. The only way to learn is to do it the hard way. Best bet is to find a theme that does stuff you like, then start pulling it apart to see how it works.

Read up on CSS and HTML too, so you have some idea of what is making the thing tick. ;)

Learn to use your browser's development tools.

It's impossible for anyone to give you a post which tells you everything you'll ever need to know. If you have a specific question about some particular point, someone can probably answer it.

themegenius:

--- Quote from: Antechinus on July 29, 2012, 06:10:38 AM ---Yeah. The only way to learn is to do it the hard way. Best bet is to find a theme that does stuff you like, then start pulling it apart to see how it works.

Read up on CSS and HTML too, so you have some idea of what is making the thing tick. ;)

Learn to use your browser's development tools.

It's impossible for anyone to give you a post which tells you everything you'll ever need to know. If you have a specific question about some particular point, someone can probably answer it.

--- End quote ---

Thank you for all of your help and advice Antechinus i really do appreciate it.

Ricky.:

--- Quote from: Antechinus on July 29, 2012, 05:50:04 AM ---Yeah I kinda figured that. :D Your questions remind me of the sort of questions I used to ask years ago.

The main_block.png image is what is commonly known as a sprite. Anytime you display a background image that is called in the CSS, what you see will be automatically clipped by the boundaries of the element. That can be a div, list, anchor, whatever.

If the div is 100px tall, you'll see 100px worth of image height, but you wont see the rest of it. This means that you can, under some conditions, join a pile of images together and use your CSS to only show the right bits in the right places. This cuts down on http requests and caching time, so is generally a good thing if done sensibly.

Arguably the 2.0 main_block.png was not done as sensibly as it could have been, but it seemed like a good idea at the time. :D

Anyway, the boxes that show the various bits of the image are not fixed in size. This means that you can't ask how big they are, because it depends on screen res, font size, etc.

--- End quote ---

You actually tried to answered him ;) , though after seeing his question, I was like .. damn how one can teach him sprites in text post, specially the way the works in SMF :) ..

themegenius:
im getting there. View the screeny

Navigation

[0] Message Index

[*] Previous page

Go to full version