How To Create A Stunning Drop Capital Effect On Your Web PagesGet Web Design Tips and Tricks on mps-web-design.com. How To Create A Stunning Drop Capital Effect On Your Web Pages topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.
Drop Capitals are frequently used in many newspapers, books and magazines in the offline world. You will frequently see the large capital letter sinking down into the first paragraph of articles, stories and chapters in the majority of publications you come across. The drop capital gives the page a nice finishing touch, and certainly adds a more professional looking feel. Online, the drop capital looks just as good on web pages as it does in print. The only drawback is that you can easily get the whole effect wrong, and end up with a less than appealing result. The wrong way... When most people attempt to create a drop capital effect on a web page, they usually just enlarge the first letter by a few font sizes and make it bold. If you do this on your own web page, you will notice that instead of a 'drop' capital effect, you end up with an odd looking letter which sticks up above the rest of the paragraph, and just looks out of place. The right way... There are essentially, two parts to creating the drop capital effect. Step #1 - You need to create a drop capital image using some graphic software. You can use any standard piece of graphic software like Paint Shop Pro, Fireworks, or Photoshop. The drop capital image should ideally be big enough to drop down between 2-4 lines of text, depending on your preference. You should ensure that the top of your drop capital image is level with the top of the text next to it. The bottom of the image should also be level with the bottom of the lowest text next to it. This is really the hardest part of creating a drop capital effect. It can be very easy to make the image just a bit too big, or a bit too small. You may find that it will take a bit of trial and error to make it look just right. However, the extra effort will pay off, as the end result will be worth waiting for. One thing to note: As with any image, a drop capital image can slow a web page if the file size is too big. To help reduce the file size you should save it as a '.gif' image. For even better results you should try to optimize the '.gif' image as well by reducing the amount of colors being used. Step #2 This step is the easiest bit… Once you have created the drop capital image, all you have to do now is to insert it into your web page. You just add the image to the web page in the same way that you would with any other image on your page. When you place it at the beginning of the paragraph, make sure you remember to delete the first letter of the normal text. Otherwise you will end up starting the paragraph with two of the same letter. Align the image to the left Initially, you will notice that the drop capital image just sits on top of the first line, instead of dropping down into it. Not for long! All you have to do now, is align the image to the left, and you will see it drop down instantly into the paragraph. If you are using a web page editor to create your web pages like Microsoft FrontPage or Macromedias Dreamweaver, aligning the image to the left is pretty easy. In FrontPage: Select the drop capital image by left clicking it once. Then click on the align to the left short cut icon in the top menu bar. Alternatively, you can select Format, then Position from the top menu. In the pop up window, select Align Left under Wrapping Style. In Dreamweaver: Select the drop capital image by left clicking it once. Then in the properties window, click on the arrow in the drop down menu next to Align, then select Left If you are using a different web page editor, you should have a similar align option in the menu area. Alternatively, you edit the HTML code directly yourself. Just add the following command in between the brackets of the image tag: align="left" Thats literally all there is to it! If you have multiple pages on your website, youll probably going to need to create a number of different drop capital images for each letter of the alphabet. The extra effort will be worthwhile as you will end up with a much more professional looking website. Copyright © 2004 Jason Lewis Asthma & Allergy Cure -Drug Free! - Never suffer again with this safe, proven, highly effective asthma & allergy treatment $24.86 + per sale High Conversion rate. WebMaster Media Maker. - Create Streaming Audio and Video with Media players that do not require a streaming media server. Some simple suggestionsWell I don't consider myself an expert, I do have experience with working with larger datasets and there are a couple of things that I always do to keep queries performing well. Optimize Queries with EXPLAIN
Optimizing joinsSingle sweep what?
Why is this important? Imagine a main table - tableA - with 80,000 rows of data. This table has a corresponding n:n table that maps entries in tableA with a locations table. A query could be written as: SELECT tableA.*, locations.location from tableA Left Join tableA2locations on tableA2locations.tableA_id = tableA.id Left Join locations on tableA2locations.location_id = locations.id where locations.location = 'sometown' Keeping the above quote in mind, MySQL will read a row from the first table and join the corresponding data from the joined tables for that row and then sweep thru the rest of the data, joining as it goes along. This leads us into the following section. Number of rows needed to execute a query
From the above, you can determine that for a query on tables that have not been properly indexed, a join can quickly become unwieldy when dealing simply with three tables with records in the thousands (1000*1000*1000 = a slow query). See HackMySQL for a good example of this. Reducing the number of rows needed to execute a querySo beyond indexing properly for joins, you can still end up with a query that runs in a way that causes a bottleneck. Taking our example from above, imagine that we use a where clause that limits the tableA selection to half ( SELECT tableA.*, locations.location from tableA Left Join tableA2locations on tableA2locations.tableA_id = tableA.id Left Join locations on tableA2locations.location_id = locations.id where locations.location = 'sometown' and tableA.foo = 'bar' This starts us out with 40,000 rows of tableA data to examine. If there are a further 2000 rows from tableA2locations, thats 800,000 rows of data. Not astronomical, but significant. If this was a 3 or 4 table join, things could get ugly. What to do? The answer may be obvious to some: select first with the most limiting table: SELECT tableA.*, locations.location from locations Left Join tableA2locations on tableA2locations.location_id = locations.id Left Join tableA on tableA2locations.tableA_id = tableA.id where locations.location = 'sometown' and tableA.foo = 'bar' This starts us out with 1 selection from the locations table, then 2000 from tableA2locations. If the join between tableA2locations and tableA is indexed correctly, we are then left with an index join based on ID, rather then having to initially select 40,000 rows from tableA as in the previous example. When I first started programming, it made sense to me to select from the main table (tableA) and join the lookups. But once you add some data to the mix and start to play with For further reading on the topic, I always send people to HackMySQL when they ask, so for more tips and tricks, be sure to have a read thru the optimize section of that site. Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
More Articles:1. Website Design Strategies for Internet Marketer By R. Syahriansyah You have no other choice. If you want to be successful online, you will need to build a website that serves the needs of your visitors in a manner thet is both user-friendly and easily understood.I think this sound easy, right? But you need to constantly be trying and testing new things, even if you currently have a website that is doing well. Why? Because what works today, is not necessarily going to work tomorrow!Here are a few strategies that you have to foolow when building and maintaining… 2. Moving Things Around By William Hanke How often, men, have you come home to find the living room furniture in different places? Your wife said she was ready for something different, so she moved some things around. It may have been inconvenient at first, but deep inside it felt good to have things a little different at home. Maybe by moving the couch over there it made the room seem bigger. By moving the TV over on that wall gave the room a sense of coziness.The same can be true for your website. If you are in a rut, and your webs… 3. Creating Personal Web Sites (Part 2) This is the second part of a two-part article about creating a web site on the Internet and the tools that you will need to do it.Some basic terminology that you should take a look at before proceeding further:Web Page: A document that contains information created with the help of HTML.Web Site: A collection of web pages on a particular subject.HTML: Also known as Hyper Text Markup Language it is used for the creation of web pages. Information is written in between HTML tags ( ) to instruct the … 4. Long Copy Sales Letters on the Web: Hype or Not? By Nick Usborne I have written before about long sales copy on the web. But I have more to say on the subject. First, let me be clear about what I’m saying here. I’m not talking about long content pages within dozens of other pages on a site. I’m talking about stand-alone pages...a long, direct response sales letter online, often with its own domain name. Next, let me say this: long copy works, online and offline. If you can hold someone’s attention with your writing, a long page gives you the space to de… |
||||