
seen from China
seen from Türkiye

seen from United States
seen from United States
seen from United States
seen from Iraq
seen from United Kingdom

seen from Malaysia

seen from Kyrgyzstan

seen from T1

seen from Norway
seen from China

seen from Netherlands
seen from China

seen from Kyrgyzstan
seen from China
seen from China

seen from United States

seen from T1
seen from T1

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch ⢠No registration required ⢠HD streaming
neko // they/she // 19
š» cute oneshot creator for omori
š» abuse, p*dophilla, and other touchy subjects arenāt allowed on this blog
š» asks: open (feel free to send one!)
current amount: 0
š» spoiler warns put on lore based asks
š» anons will be listed below here :)
nothing to see here...
š» tags to navigate the blog
#photo-memories : asks/writing
#basils-garden : me interacting with anons or rambling (potential spoiler warning)
#white-space : lore based asks (spoilers here)
#photobook-thoughts : pictures of various omori characters
Is there a way to word-wrap text in a div?
Reading the original comment, rutherford is looking for a cross-browser way to wrap unbroken text (inferred by his use of word-wrap for IE, designed to break unbroken strings).
/* Source: http://snipplr.com/view/10979/css-cross-browser-word-wrap */ .wordwrap { white-space: pre-wrap; /* CSS3 */ white-space: -moz-pre-wrap; /* Firefox */ white-space: -pre-wrap; /* Opera <7 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* IE */ }
I've used this class for a bit now, and works like a charm. (note: I've only tested in FireFox and IE)
Safari inline-block White Spaces Bug Fix
Using inline-block instead of floats on elements is ā IMHO ā a better layout choice but it requires some tricks to remove the white space between element.
Chris CoyierĀ has collected a very comprehensive list of techniques toĀ fight the space between inline block elements; if you want to know why this space is rendered and how remove it I suggest to read his post.
The font-size: 0; and font-size Reset Technique
My favourite technique consists in setting theĀ font-size: 0;Ā property on the parent and then resetting the base font size on child elements. I prefer this one above others because is less empyric than use an arbitrary negative spacing between words or letters and because involves a single property instead of two or more.
Unfortunately also this technique has a drawback; in Safari for Windows the white space does not collapse.
As said byĀ Philip WaltonĀ in his commentĀ this bug makes the technique unusable. But now I found a solution, or, rather, I discovered that the fix to solve the font rendering issue in Chrome solves also this problem.
The SVG Solution
Font SpringĀ published aĀ fix to improve the rendering of webfonts in Chrome. I used this technique in a demo and a friend asked me why in my implementation the spaces were gone even in Safari.
Looking for an explanation in the only way it ever worked ā dismantling the CSS one rule at a time ā I notice that serving the SVG version of the webfontĀ before the Woff one also fixes this problem.
To better test the technique here is a demo.
The first row of "things" have a regular, standard, @font-face rule applied to the parent element; look at that page with Safari for Windows to see that the space between element is still here.
Then take a look at the second row of elements. I've applied to this element a modified @font-face rule as explained in Font Spring post, serving SVG before Woff. If you look at that page with Safari for Windows you can notice that the spaces were correctly collapsed.
[quote] Now, the trade-offs
As explained in the Font Spring post there are three trade-offs. Honestly I think that the first two are acceptable and the third is not a Safari issue and then we will think about it when Chrome will improve the font rendering.
And what if I'm wrong?
Well, no one is perfect. I've tested this trick on every browser in my computers, both Win and Mac, and all is fine but, just in case, let me know what doesn't works and I'll check. I promise.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch ⢠No registration required ⢠HD streaming
Unlimited Grid Layout. Full-page Panning Layouts, The Easy Way
* Updated with the Flexbox version.
During my work as a frontend developer I coded many sites with a full page layout, both before and after the Flash decline.
Coding this type of layout was, every time, one step forward towards a better and more maintainable CSS structure; however, even if every single length was expressed as a relative and flexible unit, we need to know the number of pages.
For example: if we have an horizontal structure of 6 pages we set the pagesā container width to 600% and every single child page width to 16.66%. But if the number of pages changed to 5 or 7 we have to edit the CSS.
Even if we built the section wider than needed, for example setting the container to 1000% and the single pages to 10%, we canāt be sure that the number of pages never changed to a higher value.
With this problem in mind Iāve searched a solution to compose a full-page grid layout that doesnāt need to know how many pages compose the site; so if I need to add or remove pages at runtime the structure adapts itself to contain the new content.
The result is my new Unlimited Grid Layout Boilerplate; a brand new application of simple basic CSS rules that allow developers to build flexible full-page sites with the flexibility to add or remove pages, or even entire sections, without breaking the layout. The current version, the 1.0a, uses two simple declarations to achieve the task.
white-space: nowrap; on the container of the horizontal structure, and display: inline-block; on the inner pages.
These two declarations prevent child pages to wrap. Now we have an horizontal flow which generates a native scrolling and that can continue to infinite. If we donāt need the scrollbars we can simply remove them with an overflow: hidden; declaration and control the panning with javascript.
Considering that a demo is worth more than 1000 words letās see two implementations of this boilerplate: but before, let me say just two words (so eventually the words will be 1002) about this proper demo.
The demo runs slow on webkit browsers because of an issue with background-size property; try the demo on Firefox or (strange but true) in Internet Explorer to have the best experience; anyway, the background-size declaration is just for eye candy and the layout complexity may vary in the real world.
In Internet Explorer the control panel in the upper right corner does not work because the lack of support of querySelector API; so if you look at the demo in IE you can see only a 3x3 grid. Sorry about this but itās a demo and I didnāt want include any external library like jQuery.
The demo uses text-shadow and multiple backgrounds properties only for presentation purpose, so Iāve build the demo on graceful degradation concepts: in IE you canāt see any shadow on text and in IE 8 or less you canāt even see any background image or background colour but you can still explore the functionality of the boilerplate with the base grid; even in IE 7.
The CSS is fully commented so you can take a look directly at the code to discover the tricks. The CSS is separated in tree parts; only the first part, the structure, is really important for our scopes; the second part, the eye candy, is for the beauty side of the demo; and the last one, the demo logic, itās only to dress the control panel and the credits.
This boilerplate works well in Safari Mobile and Chrome Mobile (tested on iPhone and iPad with iOS6) but in the (current) demo you will not see the numbers in background like in the desktop browsers because the background-attachment: fixed; doesn't works as expected. If you test the boilerplate on other mobile browsers or devices, please, let me know the results.
Ok, now itās demo time! Letās see two implementations, one ordering pages in columns and one ordering pages in rows.
Unlimited Grid Layout Demo ā Ordered by Columns
Unlimited Grid Layout Demo ā Ordered by Rows
Do you like it? I hope you do. Feel free to experiment with the code and use it in production if you feel comfortable with it. If anyone makes a website or a webapp based on this boilerplate, please, let me know; I will appreciate.
Just one thing. The āaā in the version number (1.0a) means that there will be also a ābā version that achieve the same result using not the inline-block display property but the, less supported at now, flexible box layout model. This second demo will not be more complex than that one, but the changes in the flexbox and the lack of a solid support from browsers mades me delay this version.
Have fun, stay tuned and let me know
White space bunny play (āHappiness came in furry little bunniesā), by Enrique J. Alvarado, via Six Word Story Every Day