![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2007
Posts: 97
OS: Windows XP Home SP3
|
Repeat image horizontally (css)
Hi,
I would like to create a page with an image that repeats horizontally only, and place text above and below the image. I'm trying CSS using background-repeat: repeat-y, however this causes the image to fill the screen – I assume it gets to the end of the screen and continues filling horizontally on a new line? The effect i want is: SPACESPACE SPACESPACE TEXTEXTTEXT <--IMAGE--> Text Text Text Many thanks |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Moderator/Fedora Amb.
|
Re: Repeat image horizontally (css)
Hi,
I would try something like this: HTML Code:
div.img ** margin: 2px; border: 1px solid #0000ff; height: auto; width: auto; float: left; text-align: center; } div.img img ** display: inline; margin: 3px; border: 1px solid #ffffff; } Cheers!
__________________
![]() Linux Forever!
Last edited by wmorri; 06-24-2009 at 09:43 AM. |
|
|
|
![]() |
| Thread Tools | |
|
|