Showing posts with label Design. Show all posts
Showing posts with label Design. Show all posts

Sunday, December 14, 2008

Some helpful tutorial videos CSS & XHTML from beginning to advance

Delicious 0
After lost of email from visitors to me about questions: "How can you do that? ...", "Where can i find it...", "It doesn't work, please help...." I totally know that someone need to understand how the css works and the css rules can work without. These videos bellow i checked all and right now, i think it helpful for everyone who want to learn css and just begin to designning XHTML & CSS. From beginning to advance, you should not miss them.




1. Understanding Divs, Css, and How They Work Together by Ethan and Adam

 If you are new to XHTML, you should not miss this video. This video will help you understand how DIVs and CSS work together. The tutorial work on Dreamweaver and with this, it's more easier to follow what the author was doing. In this website, you can find other videos, maybe useful for anyone who is beginner with CSS, Web layout in PTS...

See video



2. Create a Fully CSS Website Layout by Nathaniel

The most famous people in Youtube about posting Design Tutorial Videos. In this video, you will see how to design a complete basic website layout with css, learn all about using divs, creating CSS rules, targeting divs, creating a background, and so much more! And there are other videos in his website helpful for designer. Check it all!

See video



3. CSS Tips & Tricks series by Stephen Korecky

Not a big collection but this series is helpful for you, who want to learn CSS  Tips and Tricks that users on over the internet are doing. This series contains 8 episodes and maybe continue to update. Check it now, and you will find something really cool in css.

See video series



4. How to Convert a PSD to XHTML by Jeffrey Way

This video is a complete tutorial from PSD slicing and CSS styling... You can see how he did this video with PST, Visual Studio ... He said this movie will shows you exactly how to convert a PSD into perfect XHTML/CSS. Yes, i think so.

See video




5. Converting a Photoshop Mockup by Chris Coyier

The video below is a part two of series made by Chris Coyier after lots of great feedbacks he received with part one right here. Because of part one is just 10 minutes lenght, he did the part two and in the great video he did, he show you everything, exactly how he created the CSS-Trick layout, but it's just a mini-version of the current version of CSS-Tricks.

See video 

Sunday, December 07, 2008

Improve your css skill, right now!

Delicious 0
Styling css is just follow the rules, if you run with the rule, you can get a good working, but sometime, you forgot that in these rule, you miss something that can make you better in styling css. This entry is just a bit experiences i got and i want to share with you. It'll help you not much but without that, your design can not be better.





Just change the values inherited from body

You can save your time when design css and make the css style look simple, easy to read and easy to edit by define all HTML tags you'll use in css style. When you use each tag in different cases, you dont need to re-style it, just re-use it with changing some properties you want. And you need to understand that in css, most of HTML tags will inherit properties from body tag, so that, just one time define in body tag, just  change value of properties when you use tags: h1, h2, span, p, div...

body {
 background-color: #fff;
 color: #333;
 font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;
 font-size: 12px;
 line-height: 18px;
}

h1 {
 font-size: 24px;
}


Group HTML tag selectors in one style

With some tags like html,body,div,ul,ol,li,dl,dt,dd ...similar properties, you can group that all into one style, save your css size, save your time... And when you use it somewhere in your css, you dont need to replace the same style in so many selectors.

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


Target css property in each Web Browser

You know that sometime, each web browser will display your css differently. When you add property like margin-left to your selector, maybe Firefox margin exactly but maybe IE do nothing. How to resolve this problem? Follow this example below:

#box {  
   margin-left: 20px; /* all browsers including Mac IE */  
   *margin-left: 22px; /* IE 7 and below */
   _margin-left/**/:/**/ 18px; /* IE 6 only */  
}

With this solution, you can target your css property to each web browser if something went wrong with any web browser displaying. Read my entry here to find some tips about css in IE.


Use short rule in one selector.

In CSS2, you can use the short rule, this is much better when you are a lazier. Some time, when i design css with Dreamweaver, i automatically generate the background for a selector like this:

#box {
 background-attachment: fixed;
 background-color: #fff;
 background-image: url(images/header-bg.gif);
 background-position: left top;
 background-repeat: repeat-x;
}

But you can do it by following rule:

#box {
 background: #fff url(images/bg.gif) repeat-x fixed top left;
}

and this below is rule for font:

h3 {
 font: 1em/1.5em bold italic small-caps verdana,serif;
}



Whenever out-line css style is a big mistake

Don't ever think everything you can style css in out-line style by set attribute for HTML tag like class, id. I think give you an example help you get better than saying a lot. This mistake is not a big problem, but it make your design poor and look not professionally.

By normal, you do a menu separated by a border like this:


ul li {
 display: block;
 float: left;
 margin: 5px;
 border-right: solid 1px #000; 
}

You think it's ok? I'm fastidious and i really don't like at the end of menu, it has one | odd. And now, you need to style in-line it by do HTML like this:

<ul>
    <li>Text 1</li>
    <li>Text 2</li>
    <li>Text 3</li>
    <li style="border-right: none;">Text 4</li>
</ul>

You can do that tip when you have close DIV tags and don't want it double border size, just remove border at the close side from one of two.


Write your css with Alphabet and Paragraph and Commenting

I know that it not difficult to find and edit your css seletors, with any css design application, you can easy find your one css selector you want to edit by using finder feature(normal use hot key Ctrl + F). But formating your css is a good skill you need to have as a habits. Something will like this below:

/* IMAGES */
img { 
 border: 0;
}

img.across { 
 margin: 2px 0 16px 0; 
}

img.left { 
 float: left; 
 margin: 2px 20px 16px 0; 
}

img.right { 
 float: right; 
 margin: 2px 0 16px 20px; 
}

img.flushleft { 
 margin-left: -20px; 
}

img.flushright { 
 margin-right: -20px; 
}

So, you know, css maybe easy to learn, but it's not easy to use, and using well is more difficult. Keep your good working in css by train yourself and improve your css skill, right now!

Tuesday, November 25, 2008

Don't kick your visitors's IE 6 and below out of your css layout

Delicious 0
Designing one css layout to make it Cross-Platform compability is so crazy, maybe you like the Firefox with powerfull support css and the IE7 cool and stupid web browser but nowaday someone's still using the poor browsers like IE 6, even IE 5. How to make all your web visitors happy when you display your css layout. It's not simple likes saying "This web displays best in Firefox and IE 7 above" at the bottom of your webpage like everyone are doing. No, it's stupid. Dont do that. Please make it's compability to all web browser as you can, to all is hard for you but at least, dont kick the IE 6 and below out of your css layout.

Use IE PNG Fix



This script adds near-native PNG support with alpha opacity to IE 5.5 and 6. Now you can have full translucency and no more ugly grey borders! It requires only one line in your CSS file, and no changes to your website HTML. <IMG> tags and background images are both supported.
I won’t go deep into explaining how this works as you can easily find more info on the author’s site. Suffice to say that you need to call the iepngfix.htc file as an ie-only dhtml behaviour attribute on the img element and/or any other element where you may want to use png background images on.
The only problem with this script is that it won’t work with repeating background images.

I just give you an example:

img, h1, div .PNG-bg-class {
    behavior: url(../iepngfix.htc);
}

Apple website is using this script to make PNG background work well in IE 6 and below.



How to make IE 6 and below versions support :hover events.

IE 6 and below dont support :hover events other than links. But, you can make it work well with script name Whatever:hover. It's another htc script, so that you can do it easily like PNG script above.

body { behavior:url("../csshover.htc"); }

Go to Whatever:hover script homepage to check some information.



When needed, separate your css properties to each web browser supporting.

Ah ha, this is so cool and useful for web designers. I wont go deep in this solution, but i will explaint an example for you to understand. So, you make an DIV tag and you need it margin left exactly 20px, ok i create one for example.

.yourdiv {
   margin-left: 20px; /* all browsers including Mac IE */
   *margin-left: 22px; /* IE 7 and below */
   _margin-left/**/: 18px; /* IE 5.0 */
   _margin-left:/**/ 22px; /* IE 5.5 only */
   _margin-left/**/:/**/ 18px; /* IE 6 only */

   background-color: #fff;
}

Why's that different about value? Because, sometime when you margin some div tag via css, maybe it work well, but maybe Firefox work perfect, but the IE 7 still just margin a bit or do nothing (example above happened to me many times: margin left 20px, Firefox is ok, IE 7 just margin 15px, IE 6 do nothing ...). Just follow that rule above and you can target css properties to each IE version you want.

You can do that by using conditional comments, here is the complete syntax for using:

<!--[if IE]>
do some of your css here if web browser is IE.
<![endif]-->

<!--[if IE version]>
replace version with IE verion number 
you want to do some css.
&lt![endif]-->

<!--[if gte IE version]>
replace version with IE verion number 
you want to do some css when IE version > this IE version.
<![endif]--> 

<!--[if lt IE version]>
replace version with IE verion number 
you want to do some css when IE version < this IE version.
<![endif]-->

That all are simple, right? Dont kick the IE out of your css layout. This entry just need to talk about it.

Monday, November 17, 2008

10 tips help you design your own professional Blogger layout

Delicious 0
Hi, today i will help you design your own professional Blogger layout, yep, really professional... If you are running Blogger as your own homepage. Whatever your blogger content is, your blogger must be friendly to visitors. The first, you already created your blog and you see that, layouts from Blogger Gallery is so boring, it's not as your style. Ok, why didn't design own layout for yourself with your style? Here we go...


1- You should not miss the resources from google account.

  • Picasa Web:  It's your images hosting. when you make an entry from blogger, all images in your post you uploaded will be store in your Picasa Web account. It's really cool because you can use this account to store all images in layout designed for Blogger, please check my layout, all images i stored in my picasa web.
  • Googlepages: When you design layout, you can create some javascipts and you dont have your own hosting to store it. No problems, just create your one page in Google Pages with your google account and upload all your javascipts file to it. Note: you can upload images, too. Because, sometime picasa web will not accept your image with some stupid reason, you can upload it, so, google page is cool to do. And... create your own favicon, upload it here, because picasa dont allow you to upload .ico file. But Picasa Web is still best solution to store your images in blogger.
2- Navigate the visitor with your layout menu:

By default, Blogger dont have any widget to create menu for your blogger layout, but it's ok, you can edit source code of blogger, make it easy.
The normal menu code will be liked following:

<ul>
  <li class="item"><a href="your home page url" title="Your home adress">Home</a></li>
  <li class="item"><a href="link 2" title="Title 2">Link 2</a></li>
  <li class="item"><a href="link 3" title="Title 3">Link 3</a></li>
</ul> 

and the css:


ul {
margin: 0px;
padding: 0px;
list-style-type: none; 
list-style-image: none; 
float: left;
}
ul li {
float: left; 
display: block; 
padding-left: 0px; 
} 

the property "float: left" of li tag to make your menu horizontal if you wana create your menu vertical, just remove this property.
Now, make your menu professionally, style it with corners and add some property to css style, example:
By default:

On hover:

The images you need are: sortnav_left.gif  and sortnav_right.gif:
The complete source code:

HTML:

<ul class="sortnav">
<li><a class="module-link" href="your home page url">Home</a></li>
  <li><a class="module-link" href="#">Link 2</a></li>
  <li><a class="module-link" href="#">Link 3</a></li>
</ul> 

and CSS:


ul.sortnav {
 font-size:10px;
 font-weight:bold;
 text-align:right;
 float: right;
}

ul.sortnav li {
 *padding-top:0; 
 *padding-bottom:0;
 float: left;
 display: block; !important
 padding: 0px;
 margin-right: 10px;
}
.sortnav a.module-link:focus { color:#000; text-decoration:none; }

.sortnav  li:hover {
 background-image: url(images/sortnav_right.gif);
 background-repeat: no-repeat;
 background-position: right center;
 color: #FFFFFF;
}

.sortnav a.module-link:hover {
 color: #FFFFFF;
 background-image: url(images/sortnav_left.gif);
 background-repeat: no-repeat;
 background-position: left center;
}
.sortnav a {
 color:#282828;
 outline:none;
 padding-right: 12px;
 padding-left: 12px;
 padding-top: 5px;
 padding-bottom: 5px;
 display: block; !important
} 

3- Style your Blogger Category:
There're no category module for Blogger user, but you can use Label module instead, that's ok!
Firstly, you should know that your Label Widget will rendered as unorder-list while added to your layout. From inside your blogger layout manager, you can choose what style your Label widget will display such as: Alphabetically or By Frequency. It's up to you. And, if your Blogger Layout is 2 columns and the sidebar section with width more than 300px, you should make your Label display as 2 column, it's cool.




How to do? just simple by adding into your css style with some code like:


#categories-widget ul li {
background: none;
float: left;
width: 40%;
margin-left: 22px;
padding-left: 0px;
} 

Ok, now, your Label Widget look cooland professionally, right?

4- Custom search engine on your Blogger template:
Credit to Woork.
Your Blogger will be cool if you add the search engine form on your Blogger Layout. You only have to add these lines of code on your template changing the form action URL with the URL of your site:


<form action='http://yoursite.blogspot.com/search' method='get'>
<input name='q' size='24' type='text'/>
<input name='submit' type='submit' value='search'/>
<input name='max-results' type='hidden' value='4'/>
</form> 

The input hidden field "max results" set the number of results you want to display on your page after a search.


<input name='max-results' type='hidden' value='4'/>

5- Remove Blogger Navbar:

Fortunately, hiding the blogger navbar from new blogger is also as simple as the old one. Just add the following lines anywhere in your Blogger template [enclosed by <style> tags] and the blogger banner will be gone forever.

#navbar-iframe {
height:0px;
visibility:hidden;
display:none;
}

6- Customize your Blog post body and your blogger comment block:
You look anywhere in your layout, but you cant find which part of post body should be style? It looks complicated? Dont worry, follow me...Here we go:
Firstly, make an entry, add some content, whatever you want...it's just a test. Why did i talk you to post an entry? for what? Because when you had posted an entry, you can see that in the blog page, and? the complete source code that the blog post rendered will be easy to view by simply using your web browser with View Sources. And now, if you using Dreamweaver(that's i recommended) to edit your layout, you have already create layout with basic HTML file, you copy all the source code of Blog post body to your layout you're designing to style it. Which parts of source code need to copied? That are all code between...

<div class='widget Blog' id='Blog1'>
....
</div>

Some css you should style to make your blog post comfortable and professionally:

Blog post inside, customize these below to style your post body and labels:

.date-header {
  ..
}


.post-title {
..
}


h3.post-title a {
..
}


.post a {
..
}


.post {
  ..
}



.post-body {
..
}


.post-footer {
..
}


.post-labels {
..
}

The comment and blog pager:


#blog-pager {
  text-align: center;
  }

  #comments-block {
  ..
  }

  #comments h4 {
  ..
}

.comment-author {
..
}

.comment-right-post {
..
}

.comment-timestamp {
..
}

dd.comment-body {
  ..
}

dd.comment-footer {
..
}

h3.post-publisher {
..
}


You can re-arrange all parts inside your post body to make it look nice. Just stylesheet it with these css above. So, the default comment is so boring, take a look some comment part:

My comments:


Woork comment (My favorite in blogger):


and the original comment (i dont like that :D )


You dont need style it if you want your visitor look at your comment block ;). If you have any problems when you styling your comment block, ask me, i can help you.


7- Add social button to your blogger to increase traffic:
If you have a blog, the most simple way to increase your traffic is using Social Networks. There're so many post about adding social button to your web page or blogger layout, i dont need to talk about this anymore, take some tutorial around the internet:
Ah, something important when you add social buttons to your blogger post is:

data:post.url : this is your blog post page url
data:post.title : this is your blog post title

and the code to add should be, example with Digg:


<a expr:href='&quot;http://digg.com/submit?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title'><img alt='Digg it' border='0' src='link to digg icon'/></a>

And now, take a look some blogger user make social buttons.

Weblogian.com

Blogspottutorial


And my Blogger (who did not comment after read will be kick ass, just kidding ^^)


So, it's cool, right? adding social to increase your traffic because visitor is lazy =))

8- Customize all unorderlist in your blogger layout:
Some un-orderlist in your blogger layout are:
  • Menu and Categories (Label Widget): i have talked above.
  • Recent entries and recent comments: Using feedburner to make your blog feed. And when adding code from feedburner, it's rendered as un-orderlist style.
  • Twitter: if you use twitter to update your recent doing, it same as feedburner, render un-orderlist, too.
  • And some list you want to use, style all.
The un-orderlist in my blogger was styled like that:


The css code:


.widget-inside ul {
    margin: 0px;
}
.widget-inside li {
    background-image: url(images/arrow.gif);
    background-repeat: no-repeat;
    background-position: left 8px;
    padding-left: 10px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #e5e5e5;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 11px;
}
    .widget-inside ul li a {
    color: #666666;
}
    .widget-inside ul li a:hover {
    color: #000000;
    text-decoration: none;
} 

9- Add email subscribe in your blogger layout:
It will increase your traffic and readers want RSS updates, they are easier to manage, to search and follow. And when readers wanted them, bloggers provide. In design, your email subscibe form should be large and easy to find and easy to enter ^^.
Some awesome email subscribe form you should take a look: 10 RSS Subscription Box Designs Dissected

10- Well-format your XHTML layout:
Sometime, when you edit or design your blogger layout, if everything ok, click on Save Template in blog layout manager, but it says:


Oh god, how can we know where the element missed in hold long code like that? So, so, so....what can we do now?? Dont worry, you'd better use any XML editor to fix this problem. Here is use XMLwriter to check if is well-formated.
Copy all your code, simply check the checkbox "Expand Widget Templates" and Ctrl + A, and copy all, open XMLwriter, create new document (XHTML document) then paste all code into, save it.
Then click:


The XMLwriter will see you where the error make your code not well-formated. Fix it, then update your blogger layout. It's ok, stupid error from blogger will not appear again.



Bonus: complete resources for blogger:
 I hope with my post, you can design your own professional blogger layout yourself, if you have any questions or helps, just let me know, i will help you all i can do. I love Blogger and you all.

Saturday, November 08, 2008

BRounded - Professional Blogger Layout for free download

Delicious 0
This is my second layout i designed for Blogger user. I love Blogger so much so i cant stop working on it. If you downloaded my first layout in previous post, you should not miss this layout. I this working, i dont design for new to CSS and Web Design, you can download it, but if you want to use it, you must be familiar with CSS and XHTML. So, take a look at new layout, when you have been download and replace with your old layout, your blogger will be as follow...

 
So, now, check a demo or download it now, it's free.
After download and replace your layout, you must customize your new layout.
Search somewhere in layout, replace all my links, such as: twitter, feedburner, facebook, flickr ... by your links
In my rar file for downloaded, i attached all images that this layout needs to work, you can re-uploaded all those images in your one picassaweb or any image hosting you know, or images from my picassaweb, no need to do anymore.

Create your one new widget in sidebar:
If you want to create your one new widget, you need to know that in my layout, a widget must be following format:

<h4><span class='feed-small-right'><a href='your link'>This title will be display at the top-right at each widget</a></span>Widget Title</h4>
<div class='featured_inner'>
<div class='section-w'>
                Your widget content will be here.
</div>
</div>
<br/>
<br/> 

So, because of that XHTML file layout was copied exactly from my layout at http://cafemen.blogspot.com, dont say it's not well-formated.
If you want to help to install this layout, tell me, i can help you. If anything goes wrong, tell me, i'll fix it. And if you like this layout, just buy me one Caribou Coffee =.=

Wednesday, October 29, 2008

BG-Blogger New Layout for Blogger for free

Delicious 0
Hi everyone, it is the first time i design one layout for Blogger. If you are one of blogger and want to find some layout for your own blog, download it now. If you have any comment about it, let me know, i hope i will give you more layout in the future.

The content of this entry is just know you how to replace your last layout by this BG-Blogger layout. At first, you must know that, replace your blogger layout with another one will be dangerous for your blogger. But, if you're familiar with HTML and CSS design, it's not your problem now.

Backup your current template. Note: dont back up if your HTML edit window in your blogger is collapsed, expand it and begin to backup all your blogger layout content.

Download this BG-Blogger layout now

So, this is what you get when you replaced successful



or you can see full demo of this layout at my test layout blog here

You must customize your template after replace.

Recent entries and Recent comments in this layout are powered by FeedBurner, you must create one account with that site. And find these code bellow to replace yours:


<div class='sidemenu'>
<h3><span class='feed-small-right'><a href='http://feeds.feedburner.com/prlamnguyen'>Feeds rss</a></span>Recent entries</h3>
<div class='featured_inner'>
<script src='http://feeds.feedburner.com/prlamnguyen?format=sigpro' type='text/javascript'/>
</div>
</div>

and


<div class='sidemenu'>
<h3><span class='feed-small-right'><a href='http://feeds.feedburner.com/prlamnguyen'>Feeds rss</a></span>Recent comments</h3>
<div class='featured_inner'>
<script src='http://feeds.feedburner.com/prlamnguyen-recentcomments?format=sigpro' type='text/javascript'/>
</div>
</div>


Then replace your feed url by by your own.

Categories and Widget

With the Categories menu, you dont need to do anything. you just want to edit this feed url by your feedburner url at the top right of each sidebar box.

If you want to add more widget into right sidebar, you need to replace some HTML codes of this template.

Add widget by these code below:



<div class='sidemenu'>
<h3>Your widget title</h3>
<div class='featured_inner'>

Your widget content


</div>
</div>

This layout contain the footer menu, you can add more links or informations you want at the bottom of  your blog layout.

And the last, if you need edit or add more content into this layout, you must have css knowledge, and do backup whenever you edit your own templete.

Hope you like this layout, i'll release more as soon as possible

Comments are welcome.

Sunday, October 26, 2008

Create rounded corners using css easily

Delicious 0
Someone who new to CSS layout from normal table before wanna create a new css content container/box maybe need to read this entry. I'll guide you how to create one rounded contents container using css style, create as simply as you couldnt do by normal template using table tag before.

Firstly, you must review your rounded table before. If you use Table to do, you have 2 ways to create round corner box.

1. Using 2 images:(table width cant to be resized)

This way is so easy and doesn't cost time much, but when table has to be resize because some reasons, the table will look terible, it'll not be rounded corner because of the images can not be resize as table.
I did not like this way before, but sometime, it make me comfortable because simply and easy to do.

2- Using 4 images:

You must have 4 images, and each image, you must add to each TD tag. Table can be resized without broken if you set width and height property for each TD which added image into.
 This table contains: 3 rows and 3 columns, it is harder than above one, but it was a good choice for designer and perfect way to make a rounded box, but ..........it was killed by the CSS.


Make a rounded box using CSS

When using CSS to create one rounded corner box, you still need some images as above, but it'll be easier than using table and the code is simple. It's can be made with any editor such as Dreamweaver even with ... Notepad.

1. Using 2 images and 2 DIV tag:

Now, you can see in the top div, it contains rounded border by one image and the bottom div contains one image rounded border. The code will be:


<div id="top-round">
     <div class="bottom-round">
       Your Container Content Here
  </div>
</div>


So, we need to some css code to make it work. Simple copy this code below into your css stylesheet section.


#top-round {
    width: 960px;
    padding: 0;
    background: #fff url(images/roundedtop.gif) top left no-repeat;
    margin-top: 20;
    margin-right: auto;
    margin-bottom: 20px;
    margin-left: auto;
}

#bottom-round {
background: transparent url(images/roundedbottom.gif) bottom left no-repeat;
padding: 20px 20px 10px 20px; 
margin: 0; 
} 


This method is good to use for design container content of web, the width of web page will not resize. If not, it'll be broken same as Table way above my entry. Honestly, it's more simple than same way in Table, huh?


2. Using 4 images and 4 div tag:

This method can be understand as below.
There're 4 border images and we must use 4 div for each image border. See the HTML code and CSS code below to find out how it working.

HTML


<div id="top-left">
  <div id="top-right">
  <div id="bottom-left">
  <div id="bottom-right"> 
  Hello, dont just read and go, comment if you like my entry.
  </div>
  </div>
  </div>
</div>


CSS

div#top-left{background:#e8eef5 url(images/left_top.gif) no-repeat; width:100%;}
div#top-right{background:url(images/right_top.gif) no-repeat top right;}
div#bottom-left{background:url(images/left_bottom.gif) no-repeat left bottom;}
div#bottom-right{background:url(images/right_bottom.gif) no-repeat right bottom; padding:10px;}


And the result is something like this:


3. No using image:


I love this one method, it's simple, you dont need to add more than one div tag into your web page. Really? now, see how can i do it.



HTML

<div id="outsite">
    <div id="inner">Your content here</div>
</div>
 

CSS

#outsite {
 height: 300px;
 width: 500px;
 margin: 0 auto;
}

#inner {
        background: #e8eef5;
        -webkit-border-radius: 6px;
        -moz-border-radius: 6px;
        padding: 10px; 
}
This method will be awesome if it works in IE ^^. At this moment, i dont know how to make it works in IE, but it still works perfect in Firefox.

There're so many ways to create round corners box using css but these above are most simple i know. Forget Table now!

Friday, October 24, 2008

5 Useful tools to convert your entire code into Colorized and browsable HTML

Delicious 0
When you open your blog for sharing code, writing programming tutorial, publish a entry about codes, you should colorize, it called convert the entire code into colorized and make browsable with HTML. There are so many ways to do that, you can copy the code into web page design program and make up your code, but you don't know what're the easy ways to do that thing.

 1- Use syntaxhighlighter:

This tool base on java script and stylesheet, the most popular Syntax Highlight tool in the internet, WordPress is now using this tool to highligh the code embebed.
Homepage: SyntaxHighlighter in Google Code
Download: syntaxhighlighter
Usage: manual

I like this tool because it will automatic convert the code after the web browser loaded. Because that, the code will not be formated and you can edit it later easily.

It support so many language: PHP, SQL Query, Java, Python, C# .....It's cool, right?


2- Using PHP's Built-in Source Highlighter:

PHP offer two functions for highlighting PHP code: highlight_file() and highlight_string(). Both functions return the same results, but each has its own specific input parameters. As their names suggest, the first function takes the filename of the PHP script whose code is to be highlighted, while the second takes the input as a string.

A Quick Example
Let's take a look at an example of the highlight_string() function in action:

<?php 
include_once 'init.inc.php'; 

if (!empty($_POST['text'])){ 
   echo '<div style="border: solid 1px orange; padding: 20px; margin: 20px">'; 
   highlight_string($_POST['text']); 
   echo '</div>'; 
} 
?> 



<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> 
   <textarea name="text" style="width: 300px; height: 200px"><?php 
       echo @$_POST['text'];  
   ?></textarea> 
   <br /> 
   <input type="submit" /> 
</form>


This script displays a simple textbox into which you can type or paste the PHP code you want to highlight.



3- Java2HTML Converter (for java blog): 

This is also cool converter. Java2Html was write with java language, it converts Java (and other) source code (complete files or snippets) to HTML, RTF, TeX and XHTML with syntax highlighting.
Homepage: Java2HTML Converter
Download: download here

Java2HTML can be used as Eclipse plugin and it's useful for fastly convert in time.

However, after converted, the code will be formated and it'll hardly to edit later if you want to updated your entry.



4- CodeColorizer: Free Tool to Colorize Code in HTML or RTF.

This application allows you to generate HTML or RTF so you can colorize:
  • C#, VB.NET, J#, Javascript, Cobol, Algol
  • HTML, XML, XSLT, .Config
  • T-SQL
  • CSS, and many more...
Homepage: CodeColorizer
Download: download here
Things to notice is that it generates the simplest Html possible to achieve the right formatting. It colorizes in the same place ASP.NET code, HTML, C# code, javascript code, CSS styles, and more...



5-Csharpfriends.com Online Code Formatting:

Online site formatting with following code: C#, VB.NET, J# and T-SQL.
Its useful for who dont want to install any program into computer and dont need to add any code into webpage to do automaticlly, you just do it online, copy and go back to your working
Link to converter: CSharpfriend Online Code Fomartting

If you found some webpages or tools can do something like that, please correct me. Pleased to make you work perfectly.

Friday, June 27, 2008

36 Graphics & Design Ebooks

Delicious 0
I found it in internet, really useful, hope you like it, ebooks are such as: Maya, Photoshop, Macromedia, Bryce, Digital Photography, & more... Copy these link below and download with flashget, IDM or any Download Manager Program you have

f*p://195.135.232.80/Books/design/8.books.Maya.[by.KiN_www.netz.ru].rar
f*p://195.135.232.80/Books/design/A.Short.Course.in.Digital.Photography.[by.KiN_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Adobe.Creative.Suite.Keyboard.Shortcuts.[by.KiN_www.netz.ru]_3,1.MB.rar
f*p://195.135.232.80/Books/design/Adobe.Photoshop.CS.in.10.Simple.Steps.or.Less.(2004).[by.KiN_www.netz.ru]_7,84 MB.rar
f*p://195.135.232.80/Books/design/Adobe.Photoshop.Tutorial.7.Day.Course.html.a.[28.84.MB_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Advanced.3D.Photorealism.Techniques[9,76.MB_RUS_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Bill.Flemming.Advanced.3D.Photorealism.Techniques.[RUS].[by.KiN_www.netz.ru]_9,75 MB.rar
f*p://195.135.232.80/Books/design/Bryce.5.Manual.[by.KiN_www.netz.ru_4.01MB].rar
f*p://195.135.232.80/Books/design/Corel.103.tutorials.RUS.[by.KiN_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Designing Secure Web-Based Applications for Windows 2000.zip
f*p://195.135.232.80/Books/design/DHTML.Weekend.Crash.Course[by.KiN_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Digital.Photography.Hacks.[by.KiN_www.netz.ru]_11,76.MB.rar
f*p://195.135.232.80/Books/design/How.To.Do.Everything.With.Illustrator.[by.KiN_www.netz.ru]_30,58.MB.rar
f*p://195.135.232.80/Books/design/How.To.Do.Everything.With.Photoshop.7.[by.KiN_www.netz.ru]_9,8 MB.rar
f*p://195.135.232.80/Books/design/How.To.Draw.Anime.Photoshop.Coloring.Tips.[by.KiN_www.netz.ru]_773 kB.rar
f*p://195.135.232.80/Books/design/How.To.Draw.Manga.Photoshop.Techniques.[by.KiN_www.netz.ru]_343 kB.rar
f*p://195.135.232.80/Books/design/How.To.Use.Adobe.Photoshop.7.[by.KiN_www.netz.ru]_14,66 MB.rar
f*p://195.135.232.80/Books/design/HTML.4.01.Weekend.Crash.Course[by.KiN_www.netz.ru].rar
f*p://195.135.232.80/Books/design/HTML.Complete.Course.[by.KiN_www.netz.ru]_26,79.MB.rar
f*p://195.135.232.80/Books/design/Learn.How.To.Draw.[by.KiN_www.netz.ru]_1,61.MB.rar
f*p://195.135.232.80/Books/design/Learn.HTML4.In.a.Weekend.[by.KiN_www.netz.ru]_11,02.MB.rar
f*p://195.135.232.80/Books/design/Learning.Macromedia.FlashMX.2004[658.kB_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Macromedia.Dreamweaver.4.Bible[8,86.MB_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Macromedia.Dreamweaver.MX.2004.Web.Application.Recipes[6,5.MB_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Macromedia.Flash.MX.2004.ActionScript.Reference.Guide.rar
f*p://195.135.232.80/Books/design/Macromedia.Flash.MX.2004.Using.Components.rar
f*p://195.135.232.80/Books/design/Macromedia.Flashmx.Actionscript.Reference.Guide.2004[2,66.MB_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Macromedia.Flashmx.Using.Components.2004[979.kB_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Macromedia.Press.Macromedia.Dreamweaver.MX.Dynamic.Applications.[10.46.MB_www.netz.ru].rar
f*p://195.135.232.80/Books/design/New.Riders.Photoshop.7.Power.Shortcuts.[by.KiN_www.netz.ru]_3,5 MB.rar
f*p://195.135.232.80/Books/design/NewRiders.MacromediaDreamweaverMx2004WebApplicationRecipes(6,5MB_www.netz.ru).rar
f*p://195.135.232.80/Books/design/PhotoShop.&.Illustrator.Tutorial.[14.37.MB_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Photoshop.6.Bible.[13.95.MB_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Photoshop.75.tutorial.RUS.[by.KiN_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Photoshop.CS.Tips.and.Tricks.[by.KiN_www.netz.ru].rar
f*p://195.135.232.80/Books/design/Photoshop.Rus.4-18[6.5Mb,_www.netz.ru].rar