Jump to content

Recommended Posts

Posted

Hello to all, well today we look at desktop publishing layout of the PSD (Photoshop file) to the valid code and cross-browser HTML / CSS. Just analyze a couple of fixes for Internet Explorer 6.

 

Concept Design

 

particle-concept-sm.jpg

 

Designed by Chris Spooner is a layout for a blog on WordPress. Gray background, combined with splashes of different colors in the header and the various buttons and links provide an excellent effect.

 

Cutting PSD

Layout always starts with the cutting layout. First of all let's get down to the background of those in the header. Since the image contains a variety of gradients and colors, then save it as JPEG.

 

export-header.jpg

 

In the same way cut out each element in the design. In some cases, you have to turn off the upper layers, for example, the background for the button with the date.

 

slice.jpg

 

Once you're done with pulling out pictures, you will have a folder with all images. Some of them will be repeated in the background when the others will serve as a common graphical components.

 

1.jpg

 

First, let's those zeroes styles that will not allow browsers to add arbitrary padding. Then set the font and background for a tag body. For the block-container we specify margin: 0 auto;, so it appears on the screen.

 

body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, form, fieldset, input, blockquote { 
    margin: 0; padding: 0; border: 0; 
} 

body { 
    font-family: Helvetica, Arial, Sans-Serif; line-height: 24px; 
    background: #eee url(images/body-bg.jpg) center top no-repeat; 
} 

#container { 
    width: 925px; margin: 0 auto; padding: 143px 0 0 0; 
}  

 

Now let's cap. The only thing I would like to mention here - the category should be transformed to uppercase letters in accordance with the design.

 

#header { 
    background: url(images/header-bg.png) rightright bottombottom no-repeat; overflow: hidden; 
    padding: 0 0 50px 0; 
} 

    #header h1 { 
        float: left; 
    } 

    #header ul#categories { 
        float: rightright; list-style: none; margin: 16px 0 0 0; 
    } 
        #header ul#categories li { 
            float: left; margin: 0 0 0 40px; 
        } 
            #header ul#categories li a { 
                display: block; 
                font-size: 14px; font-weight: bold; text-transform: uppercase; color: #a42988; 
                text-shadow: 0 2px 0px #fff; text-decoration: none; 
            } 
                #header ul#categories li a:hover { 
                    color: #006ab1; 
                }  

 

Our layout now beginning to take shape.

 

2.jpg

 

Further customize our content and sidebar. Since these two columns are arranged side by side, one would have to specify the float, and set overflow value to hidden. Will also need to set styles for references. We have to set the date of the map background and positioning around the unit relevant news.

 

#content { 
    background: url(images/content-bg.png) rightright top repeat-y; overflow: hidden; 
} 

    #content a { 
        font-weight: bold; text-transform: uppercase; color: #a42988; 
        text-shadow: 0 2px 0px #fff; text-decoration: none; 
    } 
        #content a:hover { 
            color: #006ab1; 
        } 

    #content #main { 
        width: 685px; float: left; padding: 55px 0 0 0; 
    } 
        #content #main h2 { 
            margin: 0 0 16px 0; 
        } 

        #content #main p { 
            margin: 0 0 25px 0; color: #474747; font-size: 15px; 
        } 
#content #main .post { 
    background: url(images/post-divider.png) rightright bottombottom no-repeat; 
    padding: 0 47px 55px 0; margin: 0 0 55px 0; 
    overflow: hidden; 
} 
    #content #main .post .date { 
        width: 62px; height: 57px; float: left; padding: 15px 0 0 0; margin: 0 20px 0 0; 
        background: #0085cc url(images/date-bg.jpg); 
        text-align: center; 
    } 
        #content #main .post .date p { 
            font-size: 40px; font-weight: bold; color: #fff; 
            text-shadow: 0 2px 3px #006ab1; 
        } 
            #content #main .post .date p span { 
                margin: 5px 0 0 0; 
                display: block; font-size: 17px; font-weight: normal; text-transform: uppercase; 
            } 
#content #main .post .post-content { 
    width: 556px; float: left; 
} 
    #content #main .post .post-content ul.post-meta { 
        width: 515px; height: 21px; list-style: none; padding: 14px 20px; 
        background: #d6d6d6 url(images/meta-bg.jpg); 
    } 
        #content #main .post .post-content ul.post-meta li { 
            float: left; margin: 0 40px 0 0; 
            font-size: 15px; font-weight: bold; text-transform: uppercase; color: #fff; text-shadow: 0px 2px 3px #b8b8b8; 
        } 
            #content #main .post .post-content ul.post-meta li.read-more { 
                float: rightright; margin: 0 0 0 0; 
            } 
                #content #main .post .post-content ul.post-meta li a { 
                    color: #fff; text-shadow: 0px 2px 3px #b8b8b8; 
                } 
                    #content #main .post .post-content ul.post-meta li a:hover { 
                        color: #eee; 
                    }

 

Quite a lot still needed for content, but this is the main part! So far we have obtained all just fine.

 

5.jpg

 

Since the content we're finished, proceed to the sidebar. It is necessary to ask oborazhenie link-buttons with the background and give them a beautiful display. Just do not forget about the subscription button (on setting this up, I wrote earlier).

 

#content #side { 
    width: 200px; float: left; padding: 5px 20px; 
} 

    #content #side p#subscribe a { 
        display: block; height: 30px; font-size: 20px; color: #fff; padding: 7px 0 0 45px; margin: 0 0 15px 0; 
        text-shadow: 0px 2px 3px #b8b8b8; 
        background: url(images/rss-icon.png) left no-repeat; 
    } 
        #content #side p#subscribe a:hover { 
            color: #eee; 
        } 

    #content #side ul#pages { 
        list-style: none; margin: 0 0 30px 0; 
    } 
        #content #side ul#pages li { 
            margin: 0 0 5px 0; 
        } 
            #content #side ul#pages li a { 
                display: block; width: 157px; height: 23px; padding: 12px 20px; text-align: center; 
                background: #eee url(images/sidebar-btn.png); 
            }

 

We almost came close to an end. Just a couple of steps ahead of him.

 

6.jpg

 

Now do the social bookmarks. In HTML code, we asked them the usual list, but by now we give the list of styles they are more or less human form. Also a search form. Here we choose to display the button inside the field.

 

#content #side h3 { 
    font-size: 20px; text-transform: uppercase; color: #fff; margin: 0 0 5px 0; 
    text-shadow: 0px 2px 3px #b8b8b8; 
} 
    #content #side ul#follow-me { 
        overflow: hidden; list-style: none; margin: 0 0 30px 0; 
    } 
        #content #side ul#follow-me li { 
            float: left; margin: 0 8px 8px 0; 
        } 
            #content #side ul#follow-me li a { 
                display: block; width: 32px; height: 32px; 
                text-indent: -9999px; 
            } 
                #content #side ul#follow-me li a.twitter { 
                    background: url(images/social-icons/twitter_32.png); 
                } 
                #content #side ul#follow-me li a.facebook { 
                    background: url(images/social-icons/facebook_32.png); 
                } 
                #content #side ul#follow-me li a.flickr { 
                    background: url(images/social-icons/flickr_32.png); 
                } 
                #content #side ul#follow-me li a.youtube { 
                    background: url(images/social-icons/youtube_32.png); 
                } 
                #content #side ul#follow-me li a.vimeo { 
                    background: url(images/social-icons/vimeo_32.png); 
                } 
#content #side form#search { 
    margin: 0 0 30px 0; 
} 
    #content #side form#search input.search-bar { 
        width: 135px; height: 43px; padding: 1px 45px 0 15px; float: left; 
        background: #eee url(images/search-bar.png); 
        font-size: 15px; color: #474747; 
    } 
    #content #side form#search input.search-btn { 
        width: 27px; height: 27px; float: rightright; margin: -36px 15px 0 0; cursor: pointer; 
        background: url(images/search-btn.png); text-indent: -9999px; padding: 0 0 0 27px; 
    }

 

That we have already happened?

 

9.jpg

 

Mend IE 6

 

All browsers are displayed very well except .... true - Internet Explorer 6.

 

ie6.jpg

 

For him, we need to create a separate file and write back some clarification. Proceed.

 

#content #side, #content #main .post .date, #content #main .post .post-content ul.post-meta { 
    overflow: hidden; 
} 

#content, #footer, #header  { 
    height: 100%; 
}

 

The HTML code between the head tags to add a connection to IE 6.

 

<!--[if IE 6]> 
<link href="css/ie6.css" rel="stylesheet" type="text/css" media="screen" /> 
<![endif]-->

 

Final result

On this work with the layout is finished. Uh ... Now we have finished svertanny layout.

 

particle-concept-sm.jpg

 

To bring to perfection

When everything is ready, it is worth to think about functionality. To page opens in the browser faster, use the compressor package

 

webjoe

 

PD: but someone tell you to do this in this section, is wrong, but why? because the web that provide PSD bone here many are only skin on the web, with this in may build the website from PSD, hope you find it helpful.

 

Credits by Gotessa for post and webjoe for guide

Posted

He can find nice guides/shares in web,indeed

It should go @ Offtopic too

 

 

anyway,thanks

so what's the problem about this if only what I bring to help others,better worry about yourself before you throw shit to others, only allows people to leave forum.
Posted

so what's the problem about this if only what I bring to help others,better worry about yourself before you throw shit to others, only allows people to leave forum.

Never said you are not helping ,or that sharing things is bad,even not yours

 

just mentioned this fact :P

  • 3 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • these are all my interfaces)
    • Updates:    Revision 568: 2020-10-28 Fix: -Mp potions thanks to RuLLezZ for report. -Archangels(Baium) attack. -geonegine doors npe. -geoengine layer correction. -boats are now properly working. -max enchant protection ,thanks to RuLLezZ-Fortitude for report. -character selection enchant effect,thanks to RuLLezZ-Fortitude for report. -multisell exploit. -SevenSigns leak-optimize. -pledge visual packet. -Party match room unhardcoded newid. -party match room auto join l2off like. Skills fix: -Force Meditation. -skill type: TARGET_MULTIFACE properly working. Rework: -sql connection pt2. -community board ClanList.java (from 120 lines to 65) -community board CastleStatus.java -community board RaidList.java optimize: -sql: player item restore. -Cboard HeroList update every 4 hours(avoid to execute sql connection on click.) Remove: -top players from cboard(and kept the one from rank system, in order to work you must enable the rank system) -   Revision 569: 2020-12-14 Fix: -npe onMagicFinalizer. -FrequentSkill npe. -Cyrillic characters support in cboard ,thanks to Fortitude for report. -255 tutorial message,thanks to Fortitude for report. -cboard switch typo,thanks to Fortitude for report. -multiply statement , thanks to Fortitude for report. -allow to interact with dead monsters to use "sweep" correctly. -potions are now visible under buffs(l2off like). -hp-mp negative value. -optimize-fix updateAbnormalEffect unnecessary packet broadcast. now it will send the update only if abnormal effects are in use or effected by somone,which is lead to a huge broadcast optimize. Monster behavior: -onAggression remove minion assist(l2 off like), -onAggression minions are following master and attacking only when we attack master-minion.tested on advext. Skills fix: -lure(skill) behavior on monster,thanks nijota for report. Rework: CharEffectList.java optimize: (Custom)EventEgnine: "asynchronize" teleport to avoid massive lag. -   Revision 570: 2021-04-11 Fix: -client-server desync(jump backward ,weird effect) while pressing attack and try to move away. -npe on player protection. -npe on summon magic skill use. -npe on use item. -on duel: you can attack summons properly.(with same duel id) -on duel finish: summons are now stop attacking and return to their owner. -soulshot properly usage after finish casting. -party member position. thanks Cibo for report. -combat-chase movement system. -Antharas-Valakas Shock skill effect l2off like. -properly remove cubics on restart-logout. -status update avoid sending unnecessary packets. -On equip-unequip item avoid sending unnecessary packets. -Revert L2GamePacketHandler.java to switch method. -shortcut doubling(properly update). thanks to ragef for report. -Event engine teleport , thanks to daffynash for report. Quest fix: -Q115_TheOtherSideOfTruth: Misa Spawn at night. thanks Cibo for report. -Q648_AnIceMerchantsDream: Steward on talk html. thanks Cibo for report. Skills fix: -augment stack. Rework: -Friend system (client-server packets l2off like). -   Revision 571: 2021-09-11 Bug fix: -avoid following target after restart-logout , thanks to EXCLUS1VE for report. -pick up stuck , thanks to EXCLUS1VE for report. -summon patk/matk speed visual animation. -summon attack request , thanks to EXCLUS1VE for report. -effect relax , thanks to EXCLUS1VE for report. -formulas hitmiss , thanks to EXCLUS1VE for report. -Social action request , thanks to EXCLUS1VE for report. -cubic attack , thanks to EXCLUS1VE for report. -Party match room chat, thanks to EXCLUS1VE for report. -pick up issue , thanks to EXCLUS1VE for report. -pet npe, thanks to EXCLUS1VE for report. Rework: -player template. -skilltreedata. -RequestAquireSkill. -RequestAquireSkillInfo. -RequestExEnchantSkill. -RequestExEnchantSkillInfo. -AcquireSkillList. -ExEnchantSkillList. Optimize: -players got their own getMoveSpeed getter , and triggers when speed change by user(walk/run commands) or buff-debuff, that way we avoid unnecessary speed calculation by updateposition task that literaly spam the calculators. -castle traps are optimized and enabled. damage calculation formula: -blow damage position bonus. -when you make a magic critical hit, the magic damage is now tripled. -melee normal attack Damage position bonus. Implement: -new vote api system.(npc-> //spawn 61) Organization: FenceManager moved in -> datatables/xml and rename to FenceData. Remove: -old antibot system and kept only one as main. -old vote system. -   Revision 572: 2022-01-08 fix -Elroki , ToIVortex , Pagan , Oracle teleporters. -shop distance(sell-buy) bug, thanks to exclusive for report. -Monster Derby Track teleport. thanks to lorka for report. -MissQueen multisell coupon. thanks to lorka for report. -Olympiad spectator error thanks to magister for report. -Quest ShowResult replace objId instead name. -html over 200++ corrections typo - bypass. -(Custom config) DAGGERS-ARCHERS wear HEAVY-LIGHT on use item unequip equipped item if config is false , to avoid stuck , thanks to exclusive for report. -Npe on connection close , thanks to exclusive for report. -Herbs auto destroy , thanks to exclusive for report. Spawn: -Implement L2off spawn data and territory system. -xml spawn list added inside datapack data/xml/spawn. -Sql spawn list has been merged with new spawn system and manage only the custom admin //spawn. -Territory Monsters randomly spawn in their territory. -Shift click on monters -> "visual" will allow you to check their territory. Skill fix: -fixed all chance skills. Optimize: -NpcData.java -PetNameTable -Siege(tasks - sql connection) Implement: -Server-Player Variable -ClientSetTime packet. -AttackDeadTarget packet. -AttackinCoolTime packet. -AttackOutOfRange packet. Rework: -L2BossSpawnInstance Clean up - Delete: -remove L2ProtectorInstance. -remove unused configs. -remove AdminUnblockIp. -remove VipTeleportCmd. -AdminCommands.xml clean up. Organization: -AutoSpawnHandler,L2Spawn,SpawnData,SpawnTerritory moved inside gameserver.model.spawn . Dont forget: to update your databse and use geodata!!! is important for the new spawn system! -   Revision 573-574: 2022-02-04 fix -Herbs auto destroy time (14 seconds) -Clan skills learn npe , thanks to Ziklis for report. -potions visual bug , thanks to Ziklis for report. Optimize: -Quest engine. -Hero engine. -SevenSigns. -Event engine. Implement: -Siegable Clan Halls (from l2j thanks to Zoey76) you can use //siege ingame for test. -Spawn data spawn_bydefault field. -CustomSpawnManager (holds npc spawn data by field "spawn_bydefault" that equals false) Clean up - Delete: -delete:EventStats.java -delete:pmoff - tradeoff handlers and merge in one (.menu voiced) -spawnlist old sql file. -   Revision 575: 2022-05-14 Fix: -Clan Skills , thanks to shush for report. -Olympiad doDie error , thanks to shush and Elliot for report. -backstub 100 % succes if attacker is behind of target. -player siege state status update. -CrownManager unhardcoded checkCrowns. -   Revision 576: 2022-07-21 Fix: -Elven Fortress teleport. thanks to JMD for report. -Traders when geodata enabled. thanks to JMD for report. -Summon Cp Potion(skills store-restore has been fixed) thanks to Noone4 for report. -Elixir reuse time , to Noone4 for report.   - Revision 577: 2022-09-25 Fix: -Drop item location.(items cannot be dropped inside wall etc, geodata must be enabled) -Hero count. Npc -Dark Choir Lancer heigh correction -Dark Choir Captain heigh correction Misc Ai: -Implement NpcWalkerTaskManager(handle npc walker ai). Misc: -isNewBie delete config-sql-getters and now depends on level. -TopRankManager is now available(merged with community board) holding stats for top players pvp-pk etc. -   Revision 578: 2022-11-07 Misc: Sql typo , thanks to noone4. Rework: -Balancer.(also save button added at the bottom) - Revision 579: 2023-03-28 Fix: -Multisell ingredient for clan points, thanks to noone4 for report. -Raid respawn time, thanks to noone4 for report. -Quest delay , thanks to noone4 for report. -Minion respawn task, thanks to noone4 for report. Rework: -Achievement Engine.(rework and optimize). -Couple - Wedding Manager.(rework and optimize). Delete: -WeddingCmd (voiced command) , wedding is now available only on npc manager. Dont forget to update your sql tables and config files.    -   Revision 580: Fix: -Start creatures AI only when they are in active region. -Subclass : In order to change the base class you can only manage it by using the master with the same type, thanks  to noone4 for report. -olympiad check item restriction and unharcoded. -monster properly delete by admin command , thanks to noone4 for report. -Zaken properly attack. thanks to l2valhalla for report. -QueenAnt nurse heal. thanks to l2valhalla for report. -Door region check to avoid stuck while wallking through.thanks to l2valhalla for report. -Rain of Fire (1296) skill radius , thanks to millerose for report. -Frost Wall (1174) skill radius , thanks to millerose for report. -RaidBossSpawnManager calendar replaced with system current time millis. -VIPTvT npe on selectNewVipOfTeam , .thanks to l2valhalla for report. -onActionShift spawn-territory npe. -L2Party properly change party leader. -AutoAttackable class cast exeption. -RequestMagicSkilluse AIOB. -L2StaticObjectInstance npe. Rework: -Project update to java 17.(you can download latest jdk version here: https://adoptium.net/temurin/releases/ ) -Remove MysqlConnector and implement MariaDb. -GeoEngine.(currently working only with l2j type , download the new geodata here: https://www.mediafire.com/file/c2tvxwt5bz086jh/geodata.rar/file ) -DoorData. -Geometry algorithm. -SQL account manager. -CustomSpawnManager(Handle npcs-monsters that are not spawned by default via xml spawn.) -L2Skill.java getTargetList rework and cleanup : case TARGET_AURA , case TARGET_AREA , case TARGET_MULTIFACE , case TARGET_PARTY ,  avoid unnecessary - heavy tasks(optimized). -Impement: -Support api for https://l2rankzone.com/ . -Admin Bookmark. -FakePlayer Chat. Organise: -CustomSpawnManager moved inside -> gameserver.model.spawn Delete: -Unused libs.   Revision 581: Fix -Fishing skill list properly show, thanks to ByDenisko for report. -Multisell enchanted items , thanks to ByDenisko for report. -Drop range between mercenary tickets. -Break Duress skill(461) , thanks to DevilMStar for report. -Interact-pickup tickets , thanks to DevilMStar for report. Rework: -refreshExpertisePenalty to avoid unnecessary calculation. -Mercenary tickets. -ClanGate skill handler.   -   Revision 582: Fix: -Siege guard aggro due to the last rework , thanks to ByDenisko for report. -Siege zone , thanks to ByDenisko for report. -Trade npe , thanks to ByDenisko for report. -Olympiad port player back position. -Antharas CCE , thanks to ByDenisko for report. -Interact exception , thanks to ByDenisko for report. -interact-pick up: action denied if the player is dead-fakedeath. (players can still interact with NPCs, but they must be within the designated interaction distance.) Rework: -Skills Array to ConcurrentSkipListMap. -L2AttackableAI think to avoid unnecessary - heavy tasks. Implement: -AutoSaveTaskManager. -AiThinkTaskManager wich handle attackable think. -Check for Event engine to activate-deactivate. -Admin zone cretion. Organization: -Rename gameserver.scrips -> gameserver.scripts   -   Revision:583 Java 21 ,DropItem-protection,ThreadPoolManager,Geongine,AdminTeleport,TopRankmanager Java 21: -The project has transitioned to Java (JDK) 21 for improved performance and features. Fix: -TopRankManager added snap list to avoid empty list while updating. -TopRankManager npe. -BookMark Teleport. -Siege: Allow pray only on the artifact spot. -Olympiad hp npe -Olympiad ip check npe -Olympiad teleport back npe Rework: -Reworked the whole Drop Protection concept and eliminated the need for synchronized methods and multiple tasks for each item.  The process is now centralized under a single manager: DropProtectionManager which centrally manages all items by one task for optimal efficiency. GeoEngine: -Maxiterations are now depends on mapsize and limit them to 13500. ThreadPoolManager: -ThreadPoolManager is now using java virtual pools.   -   Revision:584(latest 24/8/2025) RespawnTaskManager,TradeController,MerchantTaskManager,StatusListenerManager,FollowTaskManager,ItemAutoSaveTaskManager Rework: -Refactored inventory save system for improved efficiency The entire inventory save system has been restructured to eliminate redundancy and enhance performance. Previously, each item triggered its own database save Connection task (e.g., on equip, unequip, drop, add, etc.), resulting in overhead and complexity. Now, a centralized ItemAutoSaveTaskManager handles all pending item saves through a single, unified SQL connection task. -The entire creature respawn system has been restructured to eliminate redundant tasks and improve efficiency. Previously, each creature had its own separate respawn task, leading to potential overhead and complexity. Now, a centralized RespawnTaskManager handles all pending creature respawns through a single task. -TradeController has been restructured to eliminate redundant tasks by using MerchantTaskManager(same optimization as creature spawn) -StatusListenerManager now handles broadcast of statusUpdate(hp) -FollowTaskManager handles all following creatures through a single task. Fix: -clan hall buff support. thanks to Almaz. -Valakas Teleport. thanks to Almaz.  SQL Connection: Update MariaDB connector to 3.5.4          
    • isnt his i also find it on l2ketrawars  https://imgur.com/a/4BMldRQ someone lock the topic ,solved!
    • You might also take https://github.com/vercel-labs/agent-skills into consideration
    • Hay Algun datapack de L1 OFF ? 
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock