Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
Sliced and Coded |
Page: 1 2 3 4 | Reply |
Jul 1st 2003 | #111208 Report |
Member since: Jun 24th 2003 Posts: 32 |
if you think that instead of every tag you could use class="mytext" i think you can answer yourself ... as a fact ... In Macromedia flash ... the action script makes the movie much bigger than the vector graphics use in it. same with html and css i guess. |
Reply with Quote Reply |
Jul 1st 2003 | #111211 Report |
Member since: Mar 18th 2001 Posts: 6632 |
Yes. You can make people download one CSS file, which is then cached on their computer and used for every other page on your site without having to download it all again. That way they are only downloading the content for each page, rather than the content and all the formatting instructions every time, even though the site is the same on all pages. It makes things less redundant. Instead of having: < font size="1" color="#eeeeee" ....... more code here>Paragraph text< /font>< br> For every paragraph, you make one rule in CSS like this: p { font: 11px/1.5 Verdana, Trebuchet, Lucida, Arial, sans-serif; } Then for all your paragraphs, you just do this: < p>paragraph text throught entire site here< /p> And there are other techniques to save even more markup and download time. |
Reply with Quote Reply |
Jul 1st 2003 | #111212 Report |
Member since: Mar 18th 2001 Posts: 6632 |
Plus most of the time you don't even have to use classes. You can use contextual selectors instead (I think that's what their called, could be wrong) then you have a div like this: < div id="navbar"> < ul> < li>home< /li> < li>services< /li> < li>products< /li> < li>directions< /li> < li>contact us< /li> < /ul> < /div> Then you can make a thing like this: #navbar li { rules for navbar go here } That makes the browser only apply those certain rules to < li> tags that are inside a div or table with ID navbar. Any < li> tags outside of that div or table will be have like normal, or you can use CSS to make them completely different as well, depending on what div or table they are nested in. |
Reply with Quote Reply |
Jul 1st 2003 | #111214 Report |
Member since: Jun 24th 2003 Posts: 32 |
u'r right deker. css is great and make your pages load faster and look much better because they will always have unity in style
|
Reply with Quote Reply |
Jul 1st 2003 | #111237 Report |
Member since: May 28th 2003 Posts: 90 |
Where is the best place to find out more about css?
|
Reply with Quote Reply |
Jul 1st 2003 | #111239 Report |
Member since: Mar 18th 2001 Posts: 6632 |
|
Reply with Quote Reply |
Jul 2nd 2003 | #111243 Report |
Member since: Jun 3rd 2003 Posts: 1867 |
That whole thing sounded like an infomercial o_o But yeah, thats cool, i'll look more into it |
Reply with Quote Reply |
Jul 2nd 2003 | #111293 Report |
Member since: Apr 5th 2001 Posts: 2544 |
It was an infomercial... One where deker tries to make you do better stuff. |
Reply with Quote Reply |
Jul 2nd 2003 | #111295 Report |
Member since: May 7th 2003 Posts: 559 |
Looks like I started somethin, when I mentioned css. :p I will look into it more to see how it works. I have tested my site in Opera, Netscape, and IE. So far it works in all resolutions as well, even 640x480. I went over to a friends house with a dial-up connection and it loaded pretty fast on her puter too. If I change the things suggested, it should just pop up on the screen with hardly any load time at all. I hope, anyway. Thank you all for your help! I am learning so much from you guys. :D *Edit* Really stupid spelling error. |
Reply with Quote Reply |
Jul 2nd 2003 | #111308 Report |
Member since: Mar 18th 2001 Posts: 6632 |
If there were infomercials about web design, perhaps most web sites would not suck so much. But there aren't, so we have to make informative posts in forums instead.
|
Reply with Quote Reply |
Page: 1 2 3 4 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |