달력

02

« 2012/02 »

  •  
  •  
  •  
  • 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
  •  
  •  
  •  

가로 스크롤바가 생기지 않게 하려면
<head>와 </head> 사이에 아래 소스를 넣으세요.

<style type="text/css">
body {overflow-x : hidden}
</style>

만일 세로 스크롤바가 생기지 않게하려면
소스를 이렇게 수정하면 되겠죠?

<style type="text/css">
body {overflow-y : hidden}
</style>

Posted by 根™
2009/04/17 14:34

웹 문서에서의 DOCTYPE 선언 tip/xhtml/css2009/04/17 14:34

[원문] http://www.webguru.kr/zbxe/90605

DOCTYPE은 현재 웹 문서가 어떤 HTML 버전에 맞게 작성되었는지를 알려주는 부분입니다. 문서가 HTML 표준안을 따르는지, XHTML 표준안을 따르는지, 그리고 표준안 중에서도 권장 표준안(strict)을 지키는지, 완화된 표준안(Traditional)을 지키는지에 따라 특정 태그를 사용할 수 없기도 하고, 처음 예상했던 것과 다른 결과가 나타나기도 합니다.

DOCTYPE을 따로 선언하지 않으면 브라우저에서 HTML 문서로 인식하기 때문에 사용하지 않는 경우도 많지만, XHTML 언어를 사용할 경우에는 반드시 선언해 주어야 의도한대로 웹 문서를 표시할 수 있습니다.

 

가장 기본적인 문서 타입 선언은 다음과 같습니다.

 

● HTML 4.01 호환 모드 : 가장 최근의 CSS 규격을 따르며 자유롭게 요소들을 배치할 수 있습니다. 프레임은 사용할 수 없습니다. 따로 지정하지 않을 경우 브라우저에서는 이 형식으로 인식합니다.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/html4/loose.dtd">

 

● HTML 4.01 엄격 모드 : 권장하지 않는 요소들은 전혀 사용할 수 없고 요소를 배치할 때 규칙을 지켜야 합니다. HTML 문법에 맞는 가장 이상적인 문서를 만들 수 있습니다.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

 

● XHTML 1.0 호환 모드 : 프레임셋을 사용할 수 있지만 파이어폭스에서는 프레임을 사용할 수 없음

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Posted by 根™
2009/03/03 16:56

STYLE, CSS 사용하는 방법 tip/xhtml/css2009/03/03 16:56

<STYLE TYPE="text/css">
<--
H3 { font-size: 12pt; font-family: 굴림; color: #333333; }
-->
</STYLE>
TAG css, html, style
Posted by 根™
2008/11/06 13:11

CSS Text Button Design tip/xhtml/css2008/11/06 13:11

웹 페이지에서 사용되는 Button은 그 목적에 따라 명확하게 3가지로 구분할 수 있으며 HTML 마크업은 각각 다릅니다. 자원을 참조하기 위한 a 엘리먼트, 인터페이스 조작을 위한 button 엘리먼트, 서식 전송을 위한 input 엘리먼트가 바로 그것입니다.

  1. a : URI를 ‘연결‘하기 위한 버튼으로서 <a href="#uri"> 형식으로 마크업 합니다.
  2. button : URI를 연결하지 않고 단순하게 사용자 인터페이스만를 ‘조작‘하기 위한 버튼으로서 <button type="button"> 엘리먼트로 마크업 합니다. type을 명시하지 않으면 어떤 브라우저는 Form Submit 기능을 실행하기 때문에 반드시 type 속성을 button으로 지정해 주어야 합니다.
  3. input : 사용자의 입력을 서버로 ‘전송‘하기 위한 버튼으로서 <input type="submit">, <button type="submit"> 엘리먼트로 마크업 합니다.

아래 준비된 예제는 버튼의 ‘목적‘과 ‘형태‘에 따라 다양한 HTML Markup 과 CSS 표현이 있음을 보여주고 있습니다. 텍스트 기반의 가변폭 버튼 표현은 좌우 2개의 이미지가 배치되어야 하는데 현재 활성 버전의 CSS 2.x에서는 Multiful Background Images와 같은 문법을 지원하지 않기 때문에(정확히 말하면 아직 브라우저들이 CSS3를 지원하지 않기 때문에) 부득이 표현을 위한 span 엘리먼트가 사용 되었습니다. IE 5.5~7, Firefox 2~3, Safari 3.x, Opera 9.x, Chrome Beta 브라우저에서의 호환성이 확보되어 있습니다.

[ 예제를 새창으로 보기 | CSS 보기 | Image 보기 White, Black, Green, Blue, Red ]

버튼의 목적을 명확하게 판단한 뒤 알맞는 엘리먼트를 사용하는 것은 접근성을 향상시켜 줍니다. 최근에는 Javascript를 지원하지 않는 브라우저 환경이 드물지만 되도록 Javascript에만 의존하여 기능을 수행하지 않도록 하는 것이 좋습니다. 특히 Link Button을 이용하여 Form을 전송하는 기능을 구현하면 Javascript를 지원하지 않는 환경에서의 상호 운용성을 확보하지 못하고 화면낭독기 장치를 이용하는 사람들의 접근성을 떨어 뜨리게 됩니다. Form 페이지의 전송 버튼을 ’submit’ 버튼 대신 ‘a’  버튼으로 마크업 하는 경우 화면 낭독기는 HTML기반으로 내용을 읽어 주기 때문에 이것을 ‘~링크’라고 읽어 주고 시각장애인은 이것을 ‘~전송 버튼’이라고 확신할 수 없는 문제가 발생 합니다.

제시된 예제는 다국어 환경의 웹 서비스에 적합하도록 텍스트 기반으로 디자인 되었으며 텍스트의 양에 따라 버튼의 너비가 가변적으로 변합니다. 색상별로 하나의 버튼 이미지를 이용하여 다양한 너비와 높이에 대응할 수 있도록 설계되어 있습니다. 이 버튼 스타일은 곧 공개될 Zeroboard XE 게시판의 1.0.7 버전에 대한 기본 테마로 탑재될 예정 입니다. 제로보드를 사용하시는 분들께서는 기본 버튼 스타일이 마음에 들지 않으실 경우 예제를 참고하여 간단하게 다양한 스타일로의 변경이 가능하고 현재의 스타일을 이용한 재 창작도 얼마든지 가능 합니다.

[출처] http://naradesign.net/wp/2008/10/31/203/

TAG css, 버튼
Posted by 根™
사용자 삽입 이미지
위의 이미지는 테이블의 border를 스타일시트를 이용해서 가늘게 보이게 한 화면 입니다.

소스는 다음과 같습니다. ^^

붉은 글씨를 유의해서 살펴보세요.

 

== source ===================================================

<table border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse:collapse">
 <tr>
  <td width="50" height="25"> ^^</td>
  <td width="150"> my nick name is dazzi</td>
 </tr>
 <tr>
  <td width="50" height="25"> ^0^</td>
  <td width="150"> It's wonderful day!</td>
 </tr>
</table>

===========================================================

 

※ border-collapse

 

테이블 또는 셀의 테두리선 표시방법을 지정하는 스타일시트

 

 1. 옵션

    1) border-collapse:collapse ;

    서로 이웃하는 테이블이나, 셀의 테두리선을 겹쳐서 표현한다.

    2) border-collapse:separate;

    서로 이웃하는 테이블이나, 셀의 테두리선을 분리시켜 표현한다.

 

 2. border-collapse:collapse;로 지정된 경우 테두리가 겹쳤을 때 나타나는 테두리의 순서는 다음과 같다

    1) border-style:hidden;이 지정된 것이 가장 우선된다.

    2) border-style:none;이 지정된 것이 우선순위가 가장 낮다.

    3) hidden과 none이외의 값이 지정되어 있는 경우는 폭이 두꺼운 테두리선이 우선순위로 나타나게 된다.

    4) 굵기가 같은 경우 테두리선의 종류에 따라 아래와 같은 우선순위를 가지게 된다.

    double > solid > dashed > dotted > ridge > autoset > groove > inset

    5) 굵기가 같고, 테두리 종류가 동일하고 색상만(border-color) 다른 경우 아래의 순서로 우선순위를 가지게 된다.

    th요소 > td요소 > tr요소 > thead요소, tbody요소, tfoot요소 > col요소 > colgroup요소 > table요소

 

* 클래스로 맹글어서 써먹기

.boardList01    { border-collapse:collapse; border-color:red; border-style:solid; }
.boardList01 td { border-color:red; }

TAG css, html, style, table
Posted by 根™

 인풋 타입일 경우

<input type=image src="icon.gif" width="50" height="20"  style="border:0;">


일반 링크일 경우 (클릭시 테두리가 생기지 않게 함)

<a href="search.html" onfocus='this.blur()'><img src="icon.gif" border=0></a>

출처 : Tong - BlueSky_08님의 웹디자인통

TAG css, input
Posted by 根™
2008/06/05 16:29

[홈페이지템플릿] Red-business tip/webdesign2008/06/05 16:29

사용자 삽입 이미지
Designer : avenir
Date : January 9, 2007
Validation : XHTML 1.0 Strict
Uses CSS : Yes
미리보기 : http://www.oswd.org/design/preview/id/3577


Designer Notes..
Simple css/xhtml template, two columns, 800px


[출처] http://www.oswd.org/design/information/id/3577

'tip > webdesign' 카테고리의 다른 글

웹 컬러(web color)  (0) 2008/06/08
[홈페이지템플릿] Red-business  (0) 2008/06/05
[홈페이지템슬릿] Nonzero  (0) 2008/06/05
[홈페이지템플릿] turn_it_up  (0) 2008/06/05
Posted by 根™

CSS can powerfully open the doors to a lot of rich and unique techniques. Today we are presenting a round-up of CSS coding, creative approaches and techniques. Definitely worth taking a very close look at! We also included some basic techniques you can probably use in every project you are developing. This is just the third article in this series , the forth part will be coming soon, stay tuned and Enjoy!


You can also take a look at other 2 articles in this series :


So let’s get started and don’t forget to subscribe to our RSS-Feed to keep track on our next post in this series.

Styling Lists

The Amazing <li>- With a little CSS, the <li> becomes one of the most powerful and versatile tags in a web designer's arsenal. This article is a tutorial and a tribute to the amazing <li>.


So let’s get started and don’t forget to subscribe to our RSS-Feed to keep track on our next post in this series.

Better Ordered Lists (Using Simple PHP and CSS)- Here is an example where you ditch the traditional ordered list and create your own!


Style Your Ordered List- Here is a quick CSS tutorial on how you can use the ordered list <ol> and paragraph <p> element to design a stylish numbered list.


List Based Calendar- A simple way to add multiple views to a calendar, so you can view your events in a simple list, or in a month based calendar format.


Forms and Form Elements

Datasheet-style form using HTML and CSS- Make a datasheet-style web form using HTML, CSS and JavaScript with multiple similar records,


Styling File Inputs with CSS and the Dom - File inputs (<input type="file" />) are the bane of beautiful form design. No rendering engine provides the granular control over their presentation designers desire. This simple, three-part progressive enhancement provides the markup, CSS, and JavaScript to address the long-standing irritation.


Better Web Forms: Redesigning eBay’s Registration- Is a detailed walkthrough of simple changes that have a dramatic positive impact.


Uni-Form- Uni-Form is an attempt to standardize form markup (xhtml) and css, “modularize” it, so even people with only basic knowledge of these technologies can get nice looking, well structured, highly customizable, semantic, accessible and usable forms


Footers

A CSS sticky footer that just works- In just a few simple CSS classes with minimal extra HTML markup, you can get a sticky footer that even beginners can get a handle on. It’s been tested in IE 5 and up, Firefox, Safari and Opera.


MAKING YOUR FOOTER STAY PUT WITH CSS- How to make your footer dock to the bottom of the screen.


New ideas for Image Replacement

Create Custom Search Bars - With Image Replacement using CSS


HR Image Replacement with CSS- How to replace the HR tag with an image that works cross browser.


Image Sprite

Image Sprite Navigation With CSS- Creating a navigation using an image sprite, you can have a complete navigation, rollovers and all, by only using one image.


CSS image techniques

Create Resizable Images With CSS- A new technique to resize images when the user increases their browser’s text size. Images are resized along with the text rather than staying constant in size.


CSS Stamps- Using the CSS property border and outline to achieve the stamp look.


Image Captions Generated with CSS and JavaScript- The names are not part of the image - they are stored in the img’s title attribute.


Cross-browser semi-transparent backgrounds- Semi-transparent backgrounds are nice. They would be more popular, but Internet Explorer doesn’t support .png transparency. There are a few clunky workarounds. Here’s another that’s a little less clunky.


CSS Rollovers- Learn how to create a simple rollover image using CSS.


Text and Links Effects

“Checkmark” Your Visited Links with Pure CSS- The goal of this tutorial is to get a check mark preceding visited links for a nice visual indicator.


Simple Round CSS Links - Now you can style both (a) and (button) in this super easy and light-weight solution


Pure CSS Popups- Using pure CSS causing text to appear and disappear.


Navigation

Perfect pagination style using CSS- This tutorial explains how to design a pagination for search results or more in general to split a long list of records in more pages.


VISTA style toolbar- How to create VISTA style toolbar with CSS,


Digg-like navigation bar using CSS- This tutorial explains how to design a digg-like navigation bar using a liquid design with rounded corners for links.


Menu circular en CSS- A circular menu with nice hover effect showing text description for each item in the menu.


Further readings on Navigation

4 Reasons to Use CSS-Based Navigation- By using CSS to create a navigational menu you can achieve both accessibility and a professional, attractive appearance. Vandelay Design listed the benefits of using CSS for navigational menus, Worth reading.


CSS Image Galleries

CSS Image Gallery- A purely CSS based image gallery that displays larger versions of thumbnail images dynamically when the mouse hovers over them. A rich HTML caption can be added to the enlarged image.


Not so simple photograph gallery- A CSS image gallery that have a default image, a line or two of descriptive text and the ability to click an image to hold it on the screen.


A sliding list click gallery- A demonstration to show a sliding tabs gallery, with a click to open action rather than a hover. Also the facility to add some descriptive text to accompany the large image.


Drop Caps

Nice Drop caps with CSS- Using the :first-letter pseudo-element, you can easily create nice drop caps with CSS. No extra HTML or Javascript required and IE5+ browser support.


Drop Caps- This small snippet of CSS utilises the :first-letter pseudo class to apply a particluar style to the first letter of each paragraph, giving the look of an illuminated initial.


Rounded Corners in a simple New approach

3 Simple Steps in Coding a Rounded Corners Layout- A simple approach to coding fixed width, rounded corners layout in 3 simple steps.


One pixel notched corners- as used by Google Analytics.


Auto-Cropping Rounded Corners- A new solution for rounded corners, what it does is: it crops the content below it, so that anything with a background color or image (headers, paragraphs, even images) automatically get the rounded corner treatment with no extra work.


Blockquotes

Simple Double Quotes- This CSS tutorial will show you how to display two double-quote images using one blockquote tag.


Blockquotes with Image Quotes- Adding an image to the blockquote style.


Worth Checking

Pure CSS Animated Progress Bar- A simple demonstration of how you can create animated progress bar using pure css. The trick is very simple. We need 3 elements, one container and 2 nested elements.


Add a “loading” icon to your larger images- Using CSS to embed a “loading” image, to let visitors know that an image is loading.


The CSS Text Wrapper - The CSS Text Wrapper allows you to easily make HTML text wrap in shapes other than just a rectangle. You can make text wrap around curves, zig-zags, or whatever you want.


Adding a magnifier to images with CSS and JavaScript


SAC Simple Accessible Charts.


Cross-browser transparent columns- How to create transparent columns that can work in all browsers. By using the opacity property and still having the content opaque. Floats work too - which makes it possible to create multi-column transparent-column layouts.


A Cool CSS Effect - Dashboard [Updated x2]- A very simple tutorial on how to create an attractive dashboard-like dimmer for your webpage and draw your user’s attention to a certain object. Very cool web effect.


Text-Shadow Exposed- Make cool and clever text effects with css text-shadow.


CSS Speech Bubbles- Easy to customize speech bubbles coded in CSS and valid XHTML 1.0 STRICT.


The Highly Extensible CSS Interface- Cameron Moll’s first series of articles after three years looks to have been well worth the wait. Introducing “The Highly Extensible CSS Interface”, a four-part series of how-to’s and savvy conversation. Code samples are available for viewing and downloading with each article.

[출처] http://www.noupe.com/css/using-css-to-do-anything-50-creative-examples-and-tutorials.html

Posted by 根™
2008/06/04 18:52

CSS Menu with Dynamic Submenu tip/xhtml/css2008/06/04 18:52

A nice pastel color menu with a dynamic submenu which appears when you select a link in the main menu, using CSS and some lines of javascript code. The result is like this:

Menu with dynamic submenu using CSS

소스 보기 및 다운로드는 woork blogspot에 방문하심 되요~^^*

'tip > xhtml/css' 카테고리의 다른 글

input 한글/영어 제어하기  (0) 2008/12/10
CSS Text Button Design  (0) 2008/11/06
table의 border를 스타일시트로 가늘게~  (0) 2008/10/15
input type=image 테두리(boder)값 없애기  (0) 2008/10/08
Using CSS to Do Anything: 50+ Creative Examples and Tutorials  (0) 2008/06/04
CSS Menu with Dynamic Submenu  (0) 2008/06/04
40 Free Web Template Resources  (1) 2008/06/04
CSS Gradient Text Effect  (0) 2008/06/02
CSS Decorative Gallery  (0) 2008/06/02
CSS의 Sprite 기능  (0) 2008/05/29
HTML5 미리 보기  (0) 2008/05/27
Posted by 根™
2008/06/04 18:50

40 Free Web Template Resources tip/xhtml/css2008/06/04 18:50

Check out these 40 excellent websites that offer W3 standard-compliant website templates and flash template pages for free download without any registration or sign-up!

Simavera Website Templates
Simavera Website Templates
Flash and web site templates. Great collection with some attractive and modern designs to choose from.


Open Designs
Open Designs
XHTML and CSS based free web design templates. Over 1100 open source designs available for download and growing by the day!


Tristar Web Design
Tristar Web Design Templates
Just 9 templates here but if your looking for free fast loading quality XHTML & CSS templates, this site is a must!


Solucija
Solucija Templates
Free XHTML/CSS website templates available to use without any limitations. They can be used on a non commercial site as well as on a commercial one. Keeping a small credit link in the footer is not obligatory. All templates are hand coded and lightweight (under 60KB) which ensures fast loading.


Styleshout
Styleshout Templates
Large collection of quality free website templates for download. All templates are valid xthml(strict) and valid CSS, and distributed under a Creative Commons Attribution 2.5 license

 

Dream Template
Dream Template
334 free templates but users must at all times have the pre-installed DreamTemplate linking button/text on the front page of their web site. This policy does NOT apply to registered/paid members.


Metamorphozis Design
Metamorphosis Design Templates
A large collection of attractive designs released under a Creative Commons Attribution 2.5 license by the metamorphosis designers.


Iron Myers
Iron Myers Templates
Simplify your site designs with 168 of the most useful Grid and CSS Layouts. They are perfect for website templates, Blog themes, CMS or as a starting point for your web projects. Layouts offer full Grade-A browser support, That is, the layouts will look and behave the same in all internet browsers.


Six Shooter Media
Six Shooter Media Templates
A list of 11 extremely fast loading quality templates fully xhtml 1.1 and css compliant.


Nice and Free CSS Templates
Nice and Free CSS Templates
Just copy and paste any of the 12 layouts, all templates are XHTML 1.0 and CSS2/ tableless.


CSSTemps
CSS Temps
About 60 free valid XHTML/CSS templates. All templates are protected by the license inside the template.


Free CSS Templates
Free CSS Templates
All of these templates are released for FREE under the Creative Commons Attribution 2.5 license for any type of personal or commercial use provided you follow the license. Link back required.


Clan Templates
Clan Templates
Free templates for on-line gaming clans for games with multiplayer options. Clan Templates provides free gaming layouts and graphics to gamers and designers alike.


Free Website Templates
Free Website Templates
Claims to be the best free website templates on the internet and you don’t need to link back, but you should state that you used a template originally made by Free Website Templates.


Template World
Template World
Absolutely top quality, unique and creative web site XHTML/CSS templates designed by Template World. Templates have been tested and proven compatible with all major browser environments and operating systems. Released under Creative Commons Attribution 2.5 license you are free to modify but you must link back to Template World.


Layout Gala
Layout Gala
A collection of 40 CSS layouts based on the same markup and ready for download! If you want, you can download the entire collection, 40 HTML pages in a single zip file.


Open Web Design
Open Web Design
Download and upload free web designs, over 3000 demo’s to browse through!


Free CSS
Free CSS
All of the 1000 templates or so that are featured within Free CSS are distributed under some form of GNU/GPL License or under a Creative Commons License.


Open Source Web Design
Open Source Web Design
A collection of 2000+ web designs submitted by the community that anyone can download free of charge!


CSS 4 Free
CSS 4 Free Templates
Free CSS based website templates gallery for you to preview, rate, comment on, and download. Most of the templates are licensed under Creative Commons 2.5 or GPL.


Open Source Web Templates
Open Source Web Templates
Free Open Source XHTML/CSS templates designed with true web 2.0 standard and 100% W3C validated.


Premium Website Templates
Premium Website Templates
Tableless web templates built using XHTML and CSS with some also available as Blogger template or Wordpress theme. All released under a Creative Commons Attribution 2.5 license

 

Template Navigator
Template Navigator
Free templates catalogue that links only to high quality and free templates that can be 100% downloaded.


Templates Box
Templates Box
A large inventory of free website and flash templates available. Link back is required, downloads include the .PSD files and fonts.


Open Source Templates
Open Source Templates
Studio 7 designs all free CSS/XHTML website templates are free to use under the Creative Commons Attribution 2.5 license

 

Free Layouts
Free Layouts
Offers several hundred free W3 standard-compliant website templates and flash template pages for download. The site has some older templates in the collection that may not validate, and as such, you should make sure your code validates before using the template.


Dotcom Webdesign
Dotcom Design Templates
Premier source with 527 free website templates and layouts created specifically for CMSimple.


Themebot
Themebot Templates
Portal helping users to find themes/templates/styles/skins for various content management systems, blog and forum software. Free high quality open source website templates using XHTML and CSS.


Interspire
Interspire Templates
Dozens of website templates, website layouts, newsletter templates and logo templates, that you can download free of charge.


Free CSS Templates
Free CSS Templates
One of the biggest, never before seen collection of free CSS Templates on the web! All these CSS templates are released under the Creative Commons Attribution 2.5 license. At present, there are 219 free CSS templates downloadable in .Zip format.


All Free Templates
All Free Templates
Nice collection of free web and flash templates for personal and business use. Some templates include the .PSD files.


Template Workz
Template Workz
Templates are free to download and use for your personal and business projects. Website templates are available in Photoshop (PSD) and HTML formats, all the fonts are also included with the PSD file. Link back only required if you use the downloaded graphics.


Snakeye Dreamweaver Web Templates
Snakeye Dreamweaver Web Templates
20 free Dreamweaver web site templates and web page templates for download. May be used for any web site, provided the tagline at the base of the template remains within the template design.


TemplateYes
TemplateYes
About 100 cool web, flash and CSS templates 100% free. Link back required.


Mashable
Mashable Templates
A collection of 150+ great free templates from around the web including 40+ one column layouts, 80+ two column layouts and 30+ three column layouts.


Free Templates Online
Free Templates Online
Gallery of 150 professional looking websites free of charge! Link back required.


Web Design Company
Web Design Company
Unique and professional Web site templates, Flash templates, HTML templates including the full set of sub-pages free of cost. Submit name and email prior to download and link back required.


Andreas Viklund
Andreas Viklund Templates
All templates are made with valid XHTML (strict) and CSS, and they are supposed to be small, easy to work with and of high code quality. Templates are free to use for any purpose without any limitations, obligations or conditions.


Zymic
Zymic Templates
Preview live and download any one of the 90+ top quality free web designs and layouts. Link back is required!


Free online web template generator
doTemplate Generator
Easily create unique professional web templates: Pick Template > Customise > Download!
doTemplate offers a catalogue of free web templates. All templates are fully customizable to your taste and needs. You can easily tweak the colors, the fonts, apply a bunch of graphical effects to create a unique professional template in no time.

[출처] http://gofreeserve.info/archives/free-web-template-resources

'tip > xhtml/css' 카테고리의 다른 글

CSS Text Button Design  (0) 2008/11/06
table의 border를 스타일시트로 가늘게~  (0) 2008/10/15
input type=image 테두리(boder)값 없애기  (0) 2008/10/08
Using CSS to Do Anything: 50+ Creative Examples and Tutorials  (0) 2008/06/04
CSS Menu with Dynamic Submenu  (0) 2008/06/04
40 Free Web Template Resources  (1) 2008/06/04
CSS Gradient Text Effect  (0) 2008/06/02
CSS Decorative Gallery  (0) 2008/06/02
CSS의 Sprite 기능  (0) 2008/05/29
HTML5 미리 보기  (0) 2008/05/27
HTML 4와 HTML 5의 차이점  (0) 2008/05/27
Posted by 根™
2008/06/02 15:37

CSS Gradient Text Effect tip/xhtml/css2008/06/02 15:37

Do you want to create fancy headings without rendering each heading with Photoshop? Here is a simple CSS trick to show you how to create gradient text effect with a PNG image (pure CSS, no Javascript or Flash). All you need is an empty <span> tag in the heading and apply the background image overlay using the CSS position:absolute property. This trick has been tested on most browsers: Firefox, Safari, Opera, and even Internet Explorer 6. Continue to read this article to find out how.

View Demos

Download Demo ZIP

Benefits

  • This is pure CSS trick, no Javascript or Flash. It works on most browsers including IE6 (PNG hack required).
  • It is perfect for designing headings. You don’t have to render each heading with Photoshop. This will save you time and bandwidth.
  • You can use on any web fonts and the font size remains scalable.

How does this work?

The trick is very simple. Basically we are just adding a 1px gradient PNG (with alpha transparency) over the text.

screenshot

The HTML markups

<h1><span></span>CSS Gradient Text</h1>

The CSS

The key point here is: h1 { position: relative } and h1 span { position: absolute }

h1 {
  font: bold 330%/100% "Lucida Grande";
  position: relative;
  color: #464646;
}
h1 span {
  background: url(gradient.png) repeat-x;
  position: absolute;
  display: block;
  width: 100%;
  height: 31px;
}

That’s it! You are done. Click here to view my demo page.

Make it work on IE6

Since IE6 doesn’t render PNG-24 properly, the following hack is required in order to display the transparent PNG (add anywhere in between the <head> tag):

<!--[if lt IE 7]>

<style>
h1 span {
  background: none;
  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='gradient.png', sizingMethod='scale');
}
</style>

<![endif]-->

This is why we hate IE 6!

jQuery prepend version (for semantic lovers)

If you don’t want to have the empty <span> tag in the heading, you can use Javascript to prepend the <span> tag. Here is a sample using jQuery prepend method:

<script type="text/javascript" src="jquery.js"></script>

<script type="text/javascript">
$(document).ready(function(){

  //prepend span tag to H1
  $("h1").prepend("<span></span>");

});
</script>

More samples

Want to make Web 2.0 glossy text?

screenshot

Literally, you can apply this trick on any solid background color (as long your gradient color is the same as your background color).

screenshot

screenshot

screenshot

screenshot

screenshot

screenshot

Pattern / Texture

You can also apply this trick with a tile background image. Look, here is an example of zebra pattern. So, be creative!

screenshot

Limitations and more…

  • This trick is only suitable for solid background color elements. Your gradient color (PNG image) must be the same color as your background color.
  • IE PNG hack is required if you want it to work on IE 6.
  • If your gradient image is taller than the heading, the text will not be selectable.

[출처] http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/

'tip > xhtml/css' 카테고리의 다른 글

CSS Text Button Design  (0) 2008/11/06
table의 border를 스타일시트로 가늘게~  (0) 2008/10/15
input type=image 테두리(boder)값 없애기  (0) 2008/10/08
Using CSS to Do Anything: 50+ Creative Examples and Tutorials  (0) 2008/06/04
CSS Menu with Dynamic Submenu  (0) 2008/06/04
40 Free Web Template Resources  (1) 2008/06/04
CSS Gradient Text Effect  (0) 2008/06/02
CSS Decorative Gallery  (0) 2008/06/02
CSS의 Sprite 기능  (0) 2008/05/29
HTML5 미리 보기  (0) 2008/05/27
HTML 4와 HTML 5의 차이점  (0) 2008/05/27
Posted by 根™
2008/06/02 15:06

Design Watercolor Effect Menu tip/etc2008/06/02 15:06

This is a two-part tutorial on how to create an artistic and un-typical CSS list menu as seen on Web Designer Wall. In the first part (this article), I will show you how to design a watercolor effect menu in Photoshop. Then in next tutorial, I will show you how to slice the menu and code in CSS. If you need some inspiration on creating an artistic menu, visit our previous post on artistic websites. Ready? Let’s begin Part 1. (Update: Part 2 is ready - Advanced CSS Menu)

Download Photoshop file

Preview

Here is a preview of the final image:

sample menu

1. Notepaper stock image

First you need to find a notepaper stock image. You can buy stock photo from iStock or scan from a notepad.

screen 1

Cutout the notepaper and apply 2px drop shadow effect.

2. Watercolor effects

Cmd + click on the notepaper layer to load the selection. Create a new Layer Group and click on the Add Layer Mask mini icon in the Layers palette. This way everything within the Layer Group will be masked.

screen 2

Create a new layer. Choose a pink color (or any pastel color), select the Pencil tool, set the tool Opacity to 10%, brush size 100px, and drag around the document as you are doing a watercolor painting.

screen 3

Repeat this step until you get multi layers of watercolor effects.

screen 4

3. Add details

Find some coffee stain images, paste it in and set the layer blending mode to Multiply.

screen 5

Dirty and splatter effect: download and use the splatter or watercolor Photoshop brushes from Bittbox.

screen 6

Add some pencil sketch illustrations. You can either scan your marker sketches or use vector illustration.

screen 7

Make a triangle selection in the corner, pick a grey color and apply a gradient to make the wrinkle effect.

screen 8

4. Hand wrting text

If you don’t have any nice hand writing fonts, go to Dafont or Urban Fonts to download them. Create a new Layer Group and enter the navigation text.

screen 9

Find a different font, enter the menu mouseover text.

screen 10

5. Washout RSS icon

Use the Eraser tool, choose one of the splatter brushes, set tool Opacity to 10% and randomly erase the edge. Then paint some brown color overlay the icon to give the dirty effect.

screen 11

6. Sketchy strokes

Sketchy or pencil strokes can be easily created in Adobe Illustrator. Draw a shape or path, open the Brushes palette, click on the charcoal brush and set the Stroke weight to 0.25pt.

screen 12

7. Final

Here is my final image. If you want to spend more time on the details, you can add paper clips, tapes, post note, pencil sketches, etc.

sample menu

Subscribe RSS

Don’t forget to subscribe our RSS to stay in touch with our next tutorial on how to code the menu in CSS.

Update: Part 2 is ready

Please continue to read part 2 on how to code an Advanced CSS Menu.

[출처] http://www.webdesignerwall.com/tutorials/design-watercolor-effect-menu/

Posted by 根™
2008/06/02 14:49

Best of CSS Design 2007 keeping/design2008/06/02 14:49

For those who don’t know, I’m also the guy behind Best Web Gallery and N.Design Studio. In 2006, I started Best Web Gallery as a gallery site where I feature the best CSS and Flash sites. I’m glad that I started the project because it gives me the opportunity to keep my design sense up-t0-the-trend. In the past year, I’ve seen a lot of sites from the submissions (some are great, some are horrible). As 2007 is wrapping up, I would like to share the best design sites with you. Here is a list of 50 websites hand-picked from Best Web GalleryBest of CSS Design 2007.

Capture the Valley

Beautifully designed single page site.

screenshot

Squawk Design

Impressive design by a graphic arts student, Dominik Lenk.

screenshot

Holiday To Go

Love the red color applied on the tinted background.

screenshot

Team Green

The torn paper and grunge effects are nicely put together. If you like my previous artistic design collection, you will like this site.

screenshot

Radiant Plumbing

How can a plumbing website be so artistic (check out the header artwork)? If the contrast on the text area is higher, it would be a perfect design.

screenshot

Alex Buga

Love the semi-transparent effects applied on the wood texture.

screenshot

Burnett Dairy

Very cooperative, yet friendly.

screenshot

Variable

Another artsy site.

screenshot

Pixelmator

A Mac application site with nice icons and layout structure.

screenshot

Jon Tan

Good use of web typography and grid layout.

screenshot

Scrapblog

A beautiful web-app frontpage.

screenshot

Marius Roosendaal

Single page portfolio site of Marius Roosendaal. Don’t forget to check out both "Day" and "Night" theme.

screenshot

Trale

I particularly like the details spent on the typography of Trale.

screenshot

Sarah Hyland

Very well-done on the header design.

screenshot

Eye Candy

Mmm yummy… both the design and chocolate bars. Another good design site powered by WordPress.

screenshot

RealaSponse

Nice 2-column homepage.

screenshot

Flame Digital

Very unique layout structure and nice background images throughout the site.

screenshot

Tickerville

I like the design a lot, but I’m not sure if this design/style work for a financial related site.

screenshot

Webstock

New Zealand’s web conference website.

screenshot

Cabedge

Simple, clean, and comfortable layout.

screenshot

I Love Typography

A blog by John dedicated to typography.

screenshot

Shylands

Simple, large bold font, great color contrast…

screenshot

Superawesome

Very unique illustration style and color theme.

screenshot

Happy Cog

A classic beautiful site.

screenshot

Free People

One of my favorite ecommerce sites. The amount of details spent on this site is incredible.

screenshot

Wish Tree

The wish/tag cloud in the background is simply creative!

screenshot

Biola Undergrad

Another artsy design.

screenshot

Viget Labs

Nice use of Javascript and CSS (I mean the scrolling effects).

screenshot

Svenigson

Very clean and boxy layout.

screenshot

Stuff and Nonsense

Site of Andy Clarke.

screenshot

J R Velasco

Designed by Miguel Ripoll (one of my favorite designers). He has great sense of web typography. The layout looks very chaotic, yet the content is organized.

screenshot

Explore Cascadia

One word, beautiful.

screenshot

Yellow Stone Park

A very nice design within the box.

screenshot

Elliot Jay Stocks

A design blog by Elliot Jay Stocks. He is a very talented designer with great personality (based on my personal conversations with him).

screenshot

Freelance Switch

Good design and great content (freelance related).

screenshot

Knoxville

Retro style in collage form.

screenshot

Electric Pulp

I’m loving the watercolor effects.

screenshot

Vivabit

I’m not a big fan of liquid design, but this is a good one.

screenshot

Surfgarden

Nice and clean 2-column blog design.

screenshot

Tanya Merone

Another great example of single-page site.

screenshot

Matt Brett

A nice design blog by Matt Brett, he is a designer gamer.

screenshot

Larissa Meek

A beautiful blog design by Larissa Meek, formerly a model, now she is an art director at AgencyNet.

screenshot

Noodle Box

Nice use of color contrast.

screenshot

Kineda

A blog by Terry and Tami Ng (celebrity and entertainment news).

screenshot

Pod3.tv

Another nice design blog.

screenshot

Kev Adamson

Another sketchy design.

screenshot

Eleven3

Another retro/collage approach.

screenshot

Turbo Milk

Nice icon.

screenshot

Veerle’s Blog

Another classic beautiful blog.

screenshot

31three

Blog and design portfolio of Jesse Bennett-Chamberlain.

screenshot

[출처] http://www.webdesignerwall.com/trends/best-of-css-design-2007/

'keeping > design' 카테고리의 다른 글

웹디자인 참고 사이트  (0) 2009/02/16
개발자의 눈으로 본 CS4(크리에이티브 스위트 4)발표  (0) 2008/09/26
3D Wall Component Giveaways  (0) 2008/06/02
33 Artistic Sites  (0) 2008/06/02
30 Artistic Flash Sites  (1) 2008/06/02
Vintage Web Design  (0) 2008/06/02
Best of CSS Design 2007  (0) 2008/06/02
Posted by 根™
2008/06/02 14:35

CSS Decorative Gallery tip/xhtml/css2008/06/02 14:35

Did you like my previous CSS tutorial on how to create gradient text effects? I’m using the same trick to show you how to decorate your images and photo galleries without editing the source images. The trick is very simple. All you need is an extra <span> tag and apply a background image to create the overlaying effect. It is very easy and flexible — see my demos with over 20 styles, from a simple image icon to a rounded corner to a masked layer (both decorative and complex).

View Demo Gallery

Download Demo ZIP

What Are The Benefits Of This CSS Trick?

  • Saves Time — You don’t have to manually create the decorative template in Photoshop and export the individual image.
  • Keeps Original Source Images — So you don’t have to worry about changing the design theme in the future.
  • Very Flexible — You can have a completely different look and feel by just editing the CSS.
  • It Works on Any Site — This CSS trick works on any type of site, with any image size.
  • Cross-Browser CompatIble — It has passed the test on most browsers (Firefox, Safari, Opera, and even the "buggy IE6").

Basic Concept (see demo)

You need to insert an extra <span> tag within the <div> tag, with which we’ll apply a background image to create the overlaying effect. If you don’t like to have an empty span tag, you can append the span tag by Javascript (I’ll show you how later in this tutorial). Here is how it works:

Basic Concept

Then in the CSS, the key point you have to remember is: specify the div element to position:relative and the span element to position:absolute. You can position the span element anywhere you want by using the top and left property.

IE PNG Hack

To make the transparent PNG image work on IE6, I use this wonderful iepngfix.htc hack. Download a copy of iepngfix.htc and insert the following code in between the <head> tag:

<!--[if lt IE 7]>
<style type="text/css">

  .photo span { behavior: url(iepngfix.htc); }

</style>
<![endif]-->

Look and Feel

To change the look and feel, simply edit the CSS specifications of the span element. Click the image below to see the demos I have. To show you how flexible it is, I’ve created 15 different styles (notice the HTML markup is same).

Demo screenshot

The jQuery Solution (see demo)

I know some of you (particularly the web accessibility fans) don’t like to have an empty span tag in the markup. Well, I’ve solved this issue by using jQuery to append the span tag to the source code. Insert the following code in between the <head> tag:

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){

  //prepend span tag
  $(".photo a").prepend("<span></span>");

});
</script>

#1. Simple Gallery (see demo)

Let’s take the technique from the previous step and apply it to create a photo gallery.

Demo 1

#1b. Mini Icons (see demo)

This example shows you how to position different icons on top of each photo (note: an extra CSS class name is required in the span tag).

Demo 1b

#2. Photo With Text (see demo)

This example shows you how to create a gallery with linking text (em tag).

photo with text

#2b. Popup Text (see demo)

popup text

#3. Mini Paper Clip (see demo)

Mini paper clip demo

#4. Cork Board Gallery (see demo, IE6 version)

cork board gallery

sIFR Version (Flash Text Replacement) (see sIFR demo)

This example uses sIFR to replace the em text with a handwritten font (notes: in this demo, the span tag is appended by jQuery)

sIFR demo

#4b. Cork Board With Masking Tape (see demo, IE6 version)

Demo 2b

#5. Art Gallery - Black Frame (see demo)

black picture frame

#5b. Art Gallery - Gold Frame (see demo)

gold art frame

#6. Grungy Watercolor (see demo)

grungy watercolor

sIFR Version (see sIFR demo)

sIFR demo

#7. Glossy Style (see demo)

glossy style

#8. Wood Panel Gallery (see demo)

Finally, this example demonstrates how you can apply the background image to all elements to create a wood panel gallery: ul, li, and em.

wood panel

Final Remarks

As you can see, this CSS trick is very flexible. So, be creative! Feel free to incorporate the graphic images and CSS styles in this tutorial to create your own.

[출처] http://www.webdesignerwall.com/tutorials/css-decorative-gallery/

'tip > xhtml/css' 카테고리의 다른 글

CSS Text Button Design  (0) 2008/11/06
table의 border를 스타일시트로 가늘게~  (0) 2008/10/15
input type=image 테두리(boder)값 없애기  (0) 2008/10/08
Using CSS to Do Anything: 50+ Creative Examples and Tutorials  (0) 2008/06/04
CSS Menu with Dynamic Submenu  (0) 2008/06/04
40 Free Web Template Resources  (1) 2008/06/04
CSS Gradient Text Effect  (0) 2008/06/02
CSS Decorative Gallery  (0) 2008/06/02
CSS의 Sprite 기능  (0) 2008/05/29
HTML5 미리 보기  (0) 2008/05/27
HTML 4와 HTML 5의 차이점  (0) 2008/05/27
Posted by 根™
2008/05/29 17:57

CSS의 Sprite 기능 tip/xhtml/css2008/05/29 17:57

얼마전에 훈스님 블로그에서 넥슨 사이트의 성능튜닝 - #3 HTTP 요청 줄이기 라는 글을 보았습니다.

글 내용중에 HTTP요청을 줄이기 위한 하나의 방법으로 CSS Sprite 라는 기능을 설명하셨는데

그냥 보고 넘어가다가 태오사이트에서 어떤 분이 구글 메인페이지 하단의 아이콘들의 움직임을 궁금해 하시기에 저도 한번 테스트 해보기로 맘 먹고 코드를 분석하기 시작했습니다.

사용자 삽입 이미지

CSS Sprite 기능을 구글의 경우로 설명을 드리면 구글 하단에 쓰이는 이미지를 보면 하나의 통 이미지 입니다.

사용자 삽입 이미지


이 이미지를 해당 div의 background로 넣고 position의 값을 변경하면 원하는 부분의 이미지 즉 메일, 캘린더, 노트 부분만 나오게 하는 기능입니다.

그래서 IE Developer Toolbar를 이용하여 그 부분의 스타일과 HTML 코드를 보니 마우스를 올리는 순간
마우스가 가르키는 div style의 position값을 setInterval로 변경 해 주는 방법으로 보였습니다.

그 방법으로 간단하게 코딩을 해 봤습니다. 아래의 소스를 복사해서 테스트를 해 보세요.

이 기능을 모르셨던 분들은 언젠간 유용하게 사용하실 수 있겠죠? ^^;

<style type="text/css">

   #gm {

      width:52px;

      height:37px;

      background: url(http://www.google.co.kr/ig/f/JB08UxZqEXw/intl/ALL_kr/svc_sprite_all.gif) no-repeat 0px 0px;

      cursor:pointer;

   }

</style>

<script type="text/javascript">

<!--

   var num=0;

   var interVal;

   function startSprite(bol)

   {

      num = (bol ? 0 : -312);

      interVal = setInterval("_sprite(" + bol + ")",70);

   }

   function _sprite(bol)

   {

      document.getElementById("gm").style.backgroundPosition = num + "px 0px";

      num = (bol ? num-52 : num+52);

      if(num < -312 || num > 0)

         clearInterval(interVal);

   }

//-->

</script>

<div id="gm" onmouseover="startSprite(true);" onmouseout="startSprite(false);">

</div>

[출처] CSS의 Sprite 기능|작성자 마리

'tip > xhtml/css' 카테고리의 다른 글

CSS Text Button Design  (0) 2008/11/06
table의 border를 스타일시트로 가늘게~  (0) 2008/10/15
input type=image 테두리(boder)값 없애기  (0) 2008/10/08
Using CSS to Do Anything: 50+ Creative Examples and Tutorials  (0) 2008/06/04
CSS Menu with Dynamic Submenu  (0) 2008/06/04
40 Free Web Template Resources  (1) 2008/06/04
CSS Gradient Text Effect  (0) 2008/06/02
CSS Decorative Gallery  (0) 2008/06/02
CSS의 Sprite 기능  (0) 2008/05/29
HTML5 미리 보기  (0) 2008/05/27
HTML 4와 HTML 5의 차이점  (0) 2008/05/27
TAG css, sprite
Posted by 根™
웹 개발자에 의한 웹 개발자를 위한 백과사전 Google DoctypeGoogle code에 올라왔다.

말 그대로 웹 개발자를 위한 백과사전이다. MSDN 처럼 개발자를 위한 문서를 잘 정리해서 보여주는 프로젝트이다.
MSDN이 오로지 IE를 위한 것이라면, Google Doctype은 열린 웹, 웹 표준, 크로스 브라우징 가능한 웹을 만들고자 하는 개발자들을 위한 문서 창고라고 보면 된다.

현재 웹 애플리케이션 보안, CSS, DOM Scripting 관련 등에 관한 문서가 올라와 있으며, 계속해서 문서화를 해나갈 예정이라고 한다.
그리고 또한 누구나 이 문서화 작업에 참여할 수 있다고 한다.
문서들을 보니 몇몇 다른 언어권에서도 공동으로 번역을 진행하고 있는 것 같다.

나도 하루에 하나씩 번역하기.. 뭐 이런거나 해볼까나~

요즘 안그래도 1년 넘게 지속된 Only Server side 작업에 지친데다, 점점 흥미도 잃어가는 통에, Web의 클라이언트 사이드 관련 지식들을 쌓아가고 있는데, 이런 좋은게 나왔다니..


Posted by 根™