Customizing SMF > Graphics and Templates
Default Theme Sizes
themegenius:
Hi in the Default core theme could some one tell me the default sizes for the main_block. not the image its self contained in the theme folder but the size of each main_block found in the CSS
Antechinus:
That question doesn't make any sense. Do you understand how the image works?
themegenius:
not really as im new to this
Antechinus:
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.
themegenius:
ok thanks for that. im actually wanting to get rid of the main_block images and replace it with CSS which ive tried to do in my MOH-Warfighter v2 theme but it hasnt worked out.
any tips please
Navigation
[0] Message Index
[#] Next page
Go to full version