Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
HTML Pages with CSS and JavaScript
CSS Image Alignment
Meet Gaurav
Ranch Hand
Posts: 492
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
How to align images horizontally like this
webpage
Please assist me, am new to CSS..
Eric Pascarello
author
Posts: 15385
6
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
float:left on the element that is wrapping the image and text with a width and height set.
Eric
Meet Gaurav
Ranch Hand
Posts: 492
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Eric
Thanks for your time.. But I like to know how to align the images horizontally whether using DIV tag or Table.. I tried but no luck.
Please help
Meet Gaurav
Ranch Hand
Posts: 492
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Eric,
This helps me...
<div> <div style="width:10%;Text-align:center;float:left;"> <img /> <br /> <a >Test1</a> <br /> TEST2 </div> </div>
Above code gives me the exact requirement, But like to avoid the BR, but I need the same functionality.. Please help
Eric Pascarello
author
Posts: 15385
6
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
make the image and link act as block elements. Set their display.
Eric
Meet Gaurav
Ranch Hand
Posts: 492
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I tried, But no luck... Could you please help me with some code samples.....
Everyone is a villain in someone else's story. Especially this devious tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
consistent font size across the project?
DIV Popup Location
Wrapping of select box
Centering a column heading in a datatable
Determining properties of the browser screen
More...