background preloader

Css

Facebook Twitter

Hack

Float. Image. Mobile. How to Use CSS to Solve min-width Problems in Internet Explorer. By Stu Nicholls. Introduction The lack of support for minimum width in Internet Explorer has caused many problems for web designers. Until now, the only way to emulate min-width is to use either JavaScript or Internet Explorer expressions (indirect JavaScript). After many hours of experimenting, I've found a CSS only answer. Method The basic idea is to feed browsers that understand min-width the normal method (as follows) and to also feed Internet Explorer it's own special styling (which I'll explain in the following tutorial).

The CSS body - general body styling background: #fff url(rule.gif) 20px 0; - shows the background grid (10 pixel and 100 pixel marks). color: #000; - sets the font color to black. font-family: "trebuchet ms", "times new roman", times, serif; - sets up the font choice. margin: 20px; - sets the margin to 20 pixels. padding: 0; - sets the padding to zero. border: 1px solid #c00; - adds a red 1 pixel solid border. padding: 5px; - sets the padding to 5 pixels. The (X)HTML. A CSS Sticky Footer. A CSS Sticky Footer that just works We've all tried to use a CSS Sticky Footer one time or another, but they never seem to come out right, do they? Well, the days of a hard to understand CSS Sticky Footer are thankfully over. With just a few simple CSS classes with minimal extra HTML markup, I've fashioned a CSS Sticky Footer that even beginners can get a handle on.

It's been tested in IE 5 and up, Chrome, Firefox, Safari and Opera. Usage of the CSS Sticky Footer Great! This is exactly what I'm looking for! Absolutely. View the CSS or learn about using it NEW: HTML5 Sticky Footer. Online CSS Optimiser / Optimizer. Разработка с Веб-Стандартами. Русский перевод — Александр Шабуневич Содержание 1. Введение Этот документ, объясняющий как и почему следует использовать веб-стандарты, позволит вам создавать веб-сайты, экономя время и деньги разработчика и оставляя лучшее впечатление у посетителей. Также будут обсуждаться другие методы, руководства и примеры, которые могут помочь в разработке максимально доступных высококачественных сайтов. 2. Когда интернет и веб стали действительно популярны во второй половине 90-х, производители веб-браузеров еще как следует не подготовили реализацию CSS — каскадных таблиц стилей — для веб-разработчиков, чтобы позволить им контролировать внешний вид HTML-документа.

Плохая поддержка CSS в браузерах, сопровождаемая повышенными требованиями графических дизайнеров, желающих получить уровень контроля как при работе с печатными материалами, привели к неправильному употреблению HTML для визуального представления веб-страниц. 3. Что такое веб-стандарты? Структурные языки Языки представления Объектные модели 4. Css minwidth.html. Nifty Corners. Update This is the original article. The technique has been improved with better browser support and a lot of new features.

The new article has been published on the 6th of April 2005. You can read it here. Rounded Corners with CSS are a hot topic in web design: I think that there are hundreds of articles on them. Stripe it to get it rounded The basic idea of Nifty Corners is to get some coulored lines to get the rounded effect. And here's it the basic CSS: You can see the final effect on this simple example. The technique works even on floated, absolute positioned or percentage-width elements. Known bugs are: text-indent won't work on the element that has been rounded in Opera, and IE (both Mac & version 6 PC) would mess up on floated elements without specific width.

The support should be extended to all modern browsers: the technique has been tested with success in Internet Explorer 6, Opera 7.6, FireFox 1.0, Safari 1.1 Mac IE. Easy, isn't it? Looking forward with DOM Tag selector, i.e. YUI: CSS Grid Builder. Долой трехпиксельный отступ в IE! 10 CSS Tips. CSS Compressor. 70 Expert Ideas For Better CSS Coding.

Advertisement CSS isn’t always easy to deal with. Depending on your skills and your experience, CSS coding can sometimes become a nightmare, particularly if you aren’t sure which selectors are actually being applied to document elements. An easy way to minimize the complexity of the code is as useful as not-so-well-known CSS attributes and properties you can use to create a semantically correct markup. We’ve taken a close look at some of the most useful CSS tricks, tips, ideas, methods, techniques and coding solutions and listed them below. We also included some basic techniques you can probably use in every project you are developing, but which are hard to find once you need them. And what has come out of it is an overview of over 70 expert CSS ideas which can improve your efficiency of CSS coding. You might be willing to check out the list of references and related articles in the end of this post. Update (29/05/2007): Brazilian-Portuguese translation of the article2 is also available.

Coda - One-Window Web Development for Mac OS X. Good question. Coda is everything you need to hand-code a website, in one beautiful app. While the pitch is simple, building Coda was anything but. How do you elegantly wrap everything together? Well, we did it. And today, Coda has grown to be a critical tool for legions of web developers around the world. More than anything else, Coda is a text editor. But an incredible text editor is just a nice typewriter if you can’t easily handle all of your files — from anywhere. Then you’ll want to see what your code looks like. Believe it or not, we’ve just scratched the surface. Finally, hiding behind the Plus button in the tab bar is a built-in Terminal and MySQL editor, two amazingly powerful Tab Tools. And it’s all wrapped up in our Sites, which get you started quickly. Coda is a very good app. Pricing For Creative Projects » TutorialOutpost Blog. 53 CSS-Techniques You Couldn’t Live Without | CSS | Smashing Mag.

CSS is important. And it is being used more and more often. Cascading Style Sheets offer many advantages you don’t have in table-layouts - and first of all a strict separation between layout, or design of the page, and the information, presented on the page. Thus the design of pages can be easily changed, just replacing a css-file with another one. Isn’t it great? Well, actualy, it is. CSS is important. Over the last few years web-developers have written many articles about CSS and developed many useful techniques, which can save you a lot of time - of course, if you are able to find them in time.

Let’s take a look at 53 CSS-based techniques here at Smashing Mag you should always have ready to hand if you develop web-sites. 1. 2. 3. 4. 5 Powerful Tips And Tricks For Print Style Sheets 5. Generated content was first introduced in the CSS2 specification. 7. 8. 9. 10. Stephen Shaw introduces a technique for perfect horizontal and vertical centering in CSS, at any width or height. 11. 12. Steppenwolf&#039;s Lair: Создаём сложные формы без таблиц. Agat.in. Css tutorial. Как убрать лишнее пространство вокруг формы? Html css Есть два способа сделать это - с помощью хитрости и с помощью css. Хитрость: вставляем форму в таблицу, помещая её между открывающим и закрывающим тэгами: <table> <form> <tr>...

</tr> </form> Второй способ - с помощью css выставить отступы в ноль: Почему элементы формы видны даже через перекрывающие их слои? Это особенность отображения имеет место в IE и Opera под Windows и, к сожалению, ничего поделать с этим нельзя. Opera показывает все элементы формы, IE только select. Это происходит потому, что эти броузеры при отображении форм используют стандартные элементы интерфейса Windows, в то время как Netscape 6.x/Mozilla каждый раз отрисовывают их заново.

Даже проблема возникает практически во всех новых броузерах при отображении плагинов и слоёв. На сайте DHTML Lab есть более подробная статья на эту тему. Как убрать полосу прокрутки? Прежде всего, у вас должна быть действительно веская причина для этого. Scrolling="no" Примеры: или еще проще: How to center a tabbed horizontal CSS menu | Strictly CSS. Habrahabr web news.

Footer Demo. Разворачивание и сворачивание слоя. Физиология человеческого восприятия работает таким образом, что «быстрые» объекты просто не успевают восприниматься сознанием. Мозгу требуется определенное время, чтобы идентифицировать объект, понять его предназначение и усвоить информацию, которую он несет. С учетом этой особенности работают операционные системы, они отображают окна не мгновенно, а с некоторой задержкой, которая приходится на анимацию.

Такого рода анимация называется «разворачивание окна» и состоит обычно в том, что окно словно прячется за невидимыми шторками, которые раздвигаются в стороны, постепенно показывая содержимое окна. Разворачивание может происходить по горизонтали, вертикали или сразу в двух направлениях. Аналогично совершается и сворачивание окна, но в этом случае информация скрывается. Описанные действия с окнами можно перенести и на слои, которые должны отображаться поверх веб-страницы. Для получения подобного эффекта, вначале потребуется создать слой с абсолютным позиционированием (пример 1). Пример 1. Exploring Footers. One of the nice things about old-school table layout methods is that they enable you to create liquid page designs very easily. If you want to center content vertically or stick a footer to the bottom of the browser window, all you have to do is include one main table with a height of 100% and position elements inside of it.

With web standards, you can’t do this anymore. The table height property is deprecated in XHTML, and web standards recommend that you avoid using tables for page layout. To divide structural markup from presentation, CSS is the way to go — but if you want to use CSS for vertical positioning, you face a lack of support from some mainstream browsers. This article explores the ways you can position footers using web standards, although the same techniques may be used to vertically position other elements.

Many designs contain a footer that is positioned directly under the content area, unless the content and the footer together don’t fill the window entirely. Stu nicholls | CSS PLaY | variations on a drop-down theme. Information Another variation on the CSS only drop-down menu system. This time, getting away from the rectangular links that I have used on my previous examples, I have chosen a different top level and sublevel styling to show that you are not limited to the earlier styling method. This works in IE5.5, IE6, IE7, Firefox, Opera, Netscape 8 and Mac Firefox 1.5 and Safari though not Mac IE5.x.

This one does not have the extra sublevel items but these can easily be added. Cascading Style Sheet Because a lot of visitors are having trouble with the conditional comments and the cascading style sheets for this menu I have now removed the CSS to separate files and now show how to load these into the page. If you look at the header of this page you will see that the normal method of loading a file is used for the non-ie browser css. The drop_variation.css file The IE only style sheet is loaded using the conditional comment. The drop_variation_ie.css file 10th June 2006 The xhtml Copyright. Sitewide Topics : CSS. Step by step CSS float tutorial.

Floatutorial takes you through the basics of floating elements such as images, drop caps, next and back buttons, image galleries, inline lists and multi-column layouts. General info Tutorial 1. Floating an image to the right Float an image to the right of a block of text and apply a border to the image. Tutorial 2. Floating an image and caption Float an image and caption to the right of a block of text and apply borders using Descendant Selectors. Tutorial 3. Float a series of images down the right side of the page, with content flowing beside them. Tutorial 4. Float a series of thumbnail images and captions to achieve an image gallery. Tutorial 5. Float a simple list into rollover "back" and next "buttons". Tutorial 6. Float a simple list, converting it into a horizontal navigation bar.

Tutorial 7. Float a scaleable drop cap to the left, resize it and adjust line-heights to suit your needs. Tutorial 8. Float a left nav to achieve a two column layout with header and footer. Tutorial 9. CSS. Cssing :: Архив :: Магия для IE. 11 Ноября, 2005 Ни для кого не секрет что у интернет эксплорера полным полно разнообразных багов в поддержке CSS. Тот кто немного успел поверстать поймет – что часто большая часть времени уходит именно на их решение(а то и поиск), а не на саму верстку. Жаловаться на ИЕ и опускать руки тут бесполезно – он пока остается самым популярным броузером. Часто меня спасали эти несколько простых приемов. Откуда магия Большинство из этих магическик свойств напрямую связаны со свойством ИЕ – hasLayout. Position:relative Иногда родительские блоки с position:relative; просто перекрывают свои “внутренности” – в таких случаях спасает это свойство – для исчезнувшего блока. Второе использование связано с отрицательными отступами. И что самое главноe, абсолютно безвреден для других броузеров.

Height:0 Это мое любимое. Более того это свойство зарещает этому блоку обтекать что-либо. Короче height:0 для ИЕ – самое то. Еще Еще свойства которые могут помочь (имеют отношение к hasLayout): Как применять в конце Ссылки. Прозрачный PNG @ NBSP // Журнал для вебмастеров. В статье рассматриваются проблемы, связанные с PNG-графикой: совместимость и корректное отображение изображений с alpha-каналом в популярных браузерах. Начну с того, что формат .PNG мог бы сделать революцию в веб-дизайне, если бы Microsoft Internet Explorer поддерживал его формат. Не буду вдаваться в подробности, почему Microsoft не хочет поддерживать png, поскольку по этому вопросу давно уже создана целая организация, которая пытается "заставить" их сделать это.

Но мы пойдем другим путем. Попробуем решить эту проблему. Если вы думаете, что .gif и .jpg при создании вами веб-сайта не ограничивают вашу фантазию, и вас устраивает постоянно "дорезать" тенюшку в .gif`е вместе с фоном, то вы можете смело забыть про возможности .png, а точнее про 24-bit`ную глубину цвета , анти-альясинг и прозрачность.

Если вы так не думаете, то давайте попробуем решить проблему с поддержкой .png в MSIE. Но этот способ всем известен, и не о нем речь. Эксплорер автоматически подкладывает серый фон. Да, да. 3. » Как прижать footer к низу окна браузера с помощью CSS? - XHTML. Несколько раз меня спрашивали об этом в переписке по электронной почте. Расскажу всем. В CSS верстке есть пара способов прижать footer к низу окна браузера, если контента на странице не очень много. Оба варианта подразумевают позиционирование footer относительно растянутого на высоту окна браузера элемента (body или div, например). Недостатки в обоих случаях общие: высота footer должна быть известна и определена; для IE используются хаки.

Вариант 1 В этом варианте блок контента растягивается на всю высоту окна, footer с помощью отрицательного значения margin-top смещается вверх. <html><body><div id="content"> content </div><div id="footer"> footer </div></body></html> Вариант 2 В этом варианте на всю высоту окна растягивается body, а footer абсолютно спозиционирован относительно нижней его части. <html><body><div id="header"> header </div><div id="content"> content </div><div id="footer"> footer </div></body></html>