Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-12-2005, 08:26 PM   #1 (permalink)
Inactive
 
Grump's Avatar
 
Join Date: 02-12-05
Location: teh Ether
Posts: 16
iTrader: 0 / 0%
Latest Blog:
None

Grump is liked by many
Wrapping text around a text box

I don't even know what to call this. I would like to have a small text box, with a border and with smaller text size than the rest of the page, positioned on the left side of a table (actually, about 10px away from the edge) and in the middle. I want text in the main table to flow around that text box -- top, bottom and right side.

I may also want to do this same thing on other pages, but the small text box would be positioned differently. Maybe I would center it at the bottom of the page, put it on the right side, middle, even position it so that it is centered in the middle of a page with text wrapping around all sides.

Can someone tell me what this is called and explain the coding, including HTML and CSS I would need to do to make this happen? Yes, I'm new at this, but I'll learn fast.

Thank you,

Grump
Grump is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-13-2005, 01:06 AM   #2 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,149
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
Take a read on this..
http://www.alistapart.com/articles/crosscolumn/
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-13-2005, 02:25 AM   #3 (permalink)
Inactive
 
Grump's Avatar
 
Join Date: 02-12-05
Location: teh Ether
Posts: 16
iTrader: 0 / 0%
Latest Blog:
None

Grump is liked by many
Thanks, Hatchet, that was interesting reading. I also read the discussion hopping to find a way to do what I want -- without multiple columns. Unfortunately, there was no acceptable solution.

Maybe someone else will have another idea. One I thought might work would be to break the upper paragraphs off, before the small text box, with another <tr>. I don't know how to write the code, but it seems that could allow for a text box positioned on the left, right or centered. I don't know what code to use to make the text wrap around that beginning at the top of the box.

Thanks for your contribution,

Grump
Grump is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-13-2005, 03:11 PM   #4 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,149
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
This is a hack at best - but does work.
Code:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec molestie. Sed aliquam sem ut arcu. Phaseellus sollicitudin. Vestibulum condimenctum facilisis nulla. In hac habitasse platea dictumst. Nulla nonummy. Cras quis libero. Cras venenatis. Aliquam posuere lobortis pede. Nullam fringilla urna id leo. Praesent aliquet pretium erat. Praesent non odio. Pellentesque a magna a mauris vulputate lacinia. Aenean viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Aliquam lacus. Mauris magna eros, semper a, tempor et, rutrum et, tortor. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec molestie. Sed aliquam sem ut arcu. Phasellus sollicitudin. Vestibulum condimentum facilisis nulla. In hac habitasse platea dictumst. Nulla nonummy. Cras quis libero. Cras venenatis. Aliquam posuere lobortis pede. Nullam fringilla urna id leo. <span style="float:left; padding: 5px; font:Verdana, Arial, Helvetica, sans-serif; font-size:9px; border:1px solid #000000;">This is smaller text going here.. lorum ipsum farfluggin</span>Praesent aliquet pretium erat. Praesent non odio. Pellentesque a magna a mauris vulputate lacinia. Aenean viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Aliquam lacus. Mauris magna eros, semper a, tempor et, rutrum et, tortor. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec molestie. Sed aliquam sem ut arcu. Phasellus sollicitudin. Vestibulum condimentum facilisis nulla. In hac habitasse platea dictumst. Nulla nonummy. Cras quis libero. Cras venenatis. Aliquam posuere lobortis pede. Nullam fringilla urna id leo. Praesent aliquet pretium erat. Praesent non odio. Pellentesque a magna a mauris vulputate lacinia. Aenean viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Aliquam lacus. Mauris magna eros, semper a, tempor et, rutrum et, tortor. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec molestie. Sed aliquam sem ut arcu. Phasellus sollicitudin. Vestibulum condimentum facilisis nulla. In hac habitasse platea dictumst. Nulla nonummy. Cras quis libero. Cras venenatis. Aliquam posuere lobortis pede. Nullam fringilla urna id leo. Praesent aliquet pretium erat. Praesent non odio. Pellentesque a magna a mauris vulputate lacinia. Aenean viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Aliquam lacus. Mauris magna eros, semper a, tempor et, rutrum et, tortor.
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-13-2005, 04:23 PM   #5 (permalink)
Inactive
 
Grump's Avatar
 
Join Date: 02-12-05
Location: teh Ether
Posts: 16
iTrader: 0 / 0%
Latest Blog:
None

Grump is liked by many
Thanks. That only works, though, if you have a very short line of text or add line breaks to text that reached a certain width, unless it's possible to set a width in there somehow.

Question: The term "hack" in this context, does it mean it would prevent the page from validating? Is it generally considered a good or a bad thing? I ask because a lot of my site is built around the vBulletin forum software and a CMPS add-on. "Hacks" for both of them are not bad (although some are pretty crappy), but individual modifications to code or additions to add features, etc.

I'm very new at coding, so I don't even know the slang yet.

Grump
Grump is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-13-2005, 08:07 PM   #6 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,149
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
"hack" only refers to the span tag being added inline with the text instead of by itself.
The span can be given a height and width.. add it within the style="" portion. height: 100px; width: 300px; without the height and width specified it would autofit.
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-13-2005, 09:59 PM   #7 (permalink)
Inactive
 
Grump's Avatar
 
Join Date: 02-12-05
Location: teh Ether
Posts: 16
iTrader: 0 / 0%
Latest Blog:
None

Grump is liked by many
Oh yeah, that's pretty cool. I played around with it more and it really does work pretty good. I can add other style properties, like a margin, which makes it display nicely. I can put the style elements inline, or pull them from my external style sheet (which would be better, I'm sure).

This will work for a text box displayed on both the right and left sides, but not in the middle or centered. It would be nice if I could get a box to display centered between the end of one and the beginning of another paragraph.

Thank you for your help on this. If you can clue me into that centered box, that would be great. Oh, and does that inline span validate?

Thanks again, I'm very glad I joined.

Grump
Grump is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Column Wrapping Problem CountryNaturals Coding Forum 3 10-30-2007 09:15 AM
in-text ads? awesty Webmaster Revenue 3 05-10-2007 11:30 AM
Pagerank 8 text link, buy text links, high pagerank links linkmaster SEO Forum 27 11-21-2006 01:23 PM
Wrapping text around a box... Pretend Coding Forum 3 07-02-2004 11:34 AM
HTML Text Editor - PHP Text Editor Leader of Men Coding Forum 11 11-24-2003 08:20 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:14 PM.
© Copyright 2008 V7 Inc