CSS Columns MyCode - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Resources (https://community.mybb.com/forum-8.html) +--- Forum: MyCodes (https://community.mybb.com/forum-117.html) +--- Thread: CSS Columns MyCode (/thread-50804.html) Pages:
1
2
|
CSS Columns MyCode - Matt - 2009-06-04 This will arrange a paragraph into columns. It uses CSS3. This means that only certain browsers will see the columns. However, browsers that don't support CSS3, such as IE, will just see it as normal text; it won't break or anything, they'll just miss out on the effects. Regular expression:
Replacement:
And obviously have it activated/enabled. Then you would do this:
for three columns, or
for five columns, or
for a million columns... you get the idea. Don't really need to see a screenshot, it's basically like a newspaper Also, I'm not totally sure about the (.*?) stuff and whether that's secure, if it isn't, please, tell me RE: CSS Columns MyCode - frostschutz - 2009-06-04 If that's supposed to be a number always, you could use column=([0-9]+?) instead of .*? RE: CSS Columns MyCode - Matt - 2009-06-04 Thank you, updated That's one thing I've never really got round to learning about so I just use the example it gives in the ACP. RE: CSS Columns MyCode - ghazal - 2009-06-04 BTW (.*?) is secure but aome times it enables the use of HTML withing the tags, Very good job RE: CSS Columns MyCode - frostschutz - 2009-06-04 (2009-06-04, 11:27 AM)ghazal Wrote: BTW (.*?) is secure but aome times it enables the use of HTML withing the tags, ...which would make it: not secure RE: CSS Columns MyCode - ghazal - 2009-06-04 so whats the othe way to make it secure ? RE: CSS Columns MyCode - aglioeolio - 2009-06-04 amazing idea, thanks MattRogowski RE: CSS Columns MyCode - Azagthoth - 2009-06-04 great code men, very useful in the signs RE: CSS Columns MyCode - brad-t - 2009-06-05 This is awesome, thanks Matt. RE: CSS Columns MyCode - Gene53 - 2009-06-05 Great work Matt but out of curiosity, is there a way to add a little more white space between columns? Off-topic, love one of your avatars, a Peel P50, the world's smallest production car... Cheers, Gene |