This is a discussion on "thumbnail and text next to each other" within the Web Page Design section. This forum, and the thread "thumbnail and text next to each other are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
thumbnail and text next to each other
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
thumbnail and text next to each other
I have this looking how I would like, but it doesn't strike me as being the most efficient code. Just wondered whether it could be cleaned up further.
I have a small thumbnail on the left, with text on the right.. ![]()
|
|
|
|
|||
|
Re: thumbnail and text next to each other
I would get rid of the font tags and just style the text in the css eg
#bio p { padding-top: 5px; padding-left: 2px; color:#fff; font-weight:bold; } |
|
|||
|
Re: thumbnail and text next to each other
That should be a list. You can use a ul. Any presentational code should be in the CSS so get rid of the font elements and change the <b> to <strong>, the same eeffect but it has more meaning. If you want to apply a colour or anything to just a word or few words then use the span element. Like this:
Pete. Last edited by pa007; Jul 1st, 2007 at 16:25. Reason: spelling mistakes in the css, oops! |
|
||||
|
Re: thumbnail and text next to each other
thanks once again.
Use the same style for just one thumbnail and text on the page? ![]() |
|
|||
|
Re: thumbnail and text next to each other
I see another problem with your code. Instead of using id="bio" for all the div's you should consider using classes. The reason for this is that id's should be unique across a page, i.e. there should always be only one element with a given id.
|
|
|||
|
Re: thumbnail and text next to each other
I'd do something like this:
HTML:
Hope that's works for you. Pete. Last edited by pa007; Jul 1st, 2007 at 21:06. |
|
|||
|
Re: thumbnail and text next to each other
Nice and good solution Pete..
We just sometimes make things harder for ourself, I read somewhere there are 2000+ ways to write html/css |
|
|||
|
Re: thumbnail and text next to each other
It wouldn't suprise me. It's great because that means you can do so much with it but it's a pain because finding the right solution can be tricky sometimes. It's fun though, I like the problem solving-side of coding the best.
Pete. |
|
||||
|
Re: thumbnail and text next to each other
Cheers mate. I'm edging closer to that Donate button!
How would you layout my second screen shot above with just the one thumbnail and the text around it and below? |
|
|||
|
Re: thumbnail and text next to each other
Yah thats good that there are several ways to do one thing, this helps alot when we develop something that is dynamic & cross-browser..
|
|
|||
|
Re: thumbnail and text next to each other
How many of these would you have on each page? Would it be one band member per page or would all of the bio's be on a single page?
Pete. |
|
||||
|
Re: thumbnail and text next to each other
One small image in the top left per page, the rest text wrapped around the image and below.
Just float the image left? |
|
|||
|
Re: thumbnail and text next to each other
This works and I think it is pretty good. Someone will have to help me here. Does an image element have to be wrapped with anything other than a div or is it ok just sitting there? In this example it is within a div but nothing else, is that ok?
HTML:
If there is more than one band member on each page a list might be more appropriate. That will be more difficult to implement so give me a shout if that's the case. Pete. |
|
|||
|
Re: thumbnail and text next to each other
I typically will have a div class as my container.
Inside the div class I will float an image left. I will also add a margin-right and a margin-bottom so that my text does not touch the image. Then I add <p>'s and put my text in. The text will wrap around without touching the image. |
![]() |
| Tags |
| float, layout, text, thumbnail |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make a thumbnail using javascript? | FXDesigns | JavaScript Forum | 7 | Jan 21st, 2008 01:58 |
| Help with Thumbnail popup windows | cjrollo | Flash & Multimedia Forum | 6 | Dec 7th, 2007 13:59 |
| HELP - IE7 Thumbnail Images on a tab | ActionPart | Web Page Design | 2 | Jul 15th, 2007 13:00 |
| Scrolling thumbnail | Dan Oliver | Flash & Multimedia Forum | 1 | Jun 6th, 2007 16:22 |
| How does one make thumbnail images? | Picard | Website Planning | 3 | Dec 29th, 2006 13:34 |