|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Junior Member Join Date: Jul 2006 Location: Derby
Posts: 37
![]() | Hi, Just wondering if anyone can help me stop my background image repeating. The image repeats on the right and beneath. Many thanks |
| |
|
| |||||||
| | #2 |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,859
![]() ![]() ![]() ![]() ![]() | You should use this css background attribute: "background-repeat:no-repeat;"
__________________ █ Time may come when you will need an excellent eCommerce shopping cart software █ free seo related web directory precíziós mérleg Free shopping cart |
| |
| | #3 | |
| Senior Member | Quote:
More specifically: body { background-repeat: no-repeat; }
__________________ Intripita :: web hosting | development | conferencing Business-Grade Web Hosting, Professional Conferencing, Effective Web Development by Intripita | |
| |
| | #4 |
| Junior Guru | Or use this way: body { background: #ffffff url(image.png) no-repeat; } if you wanted it to just repeat on the left side of the page: body { background: #ffffff url(image.png) repeat-y; } and if you wanted it to just repeat on the top of your page: body { background: #ffffff url(image.png) repeat-x; } Hope this helps you and the others who have this question! HTMLGuy
__________________ yaxal releases '07 |
| |
| | #5 |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,859
![]() ![]() ![]() ![]() ![]() | So spenno as You see, there are lot of alternatives ![]() Choose one!
__________________ █ Time may come when you will need an excellent eCommerce shopping cart software █ free seo related web directory precíziós mérleg Free shopping cart |
| |
| | #6 |
| Junior Member Join Date: Jul 2006 Location: Derby
Posts: 37
![]() | should i use this in css. thanks |
| |
| | #7 |
| Junior Member Join Date: Jul 2006 Location: Derby
Posts: 37
![]() | this is my css: /* CSS Document */ .links { font-family:arial; font-size:10px; font-weight:bold; color:#9D014B; text-decoration:none ;} a.links:hover { color:#073A74; } .header-text {font-family:Arial, Helvetica, sans-serif; font-size:18px; font-weight:bold; color:#9D014B; text-decoration:none;} .address {font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:bold; color:#ffffff; text-decoration:none;} .subheader-text {font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#9D014B; text-decoration:none;} .text {font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#073A74; text-decoration:none;} .table-bg {background-color:#005793;} #dropmenudiv{ position:absolute; background-color: #ffffff; border:1px solid black; border-bottom-width: 0; font:normal 10px arial; line-height:18px; z-index:100; } #dropmenudiv a{ width: 100%; display: block; color: #073A74; text-indent: 3px; border-bottom: 1px solid black; padding: 1px 0; text-decoration: none; font-weight: bold; } #dropmenudiv a:hover{ /*hover background color*/ background-color: #E8C4C6; } Can you tell me where to add it thanks |
| |
| | #8 |
| Junior Member Join Date: Jul 2006 Location: Derby
Posts: 37
![]() | this is my css: /* CSS Document */ .links { font-family:arial; font-size:10px; font-weight:bold; color:#9D014B; text-decoration:none ;} a.links:hover { color:#073A74; } .header-text {font-family:Arial, Helvetica, sans-serif; font-size:18px; font-weight:bold; color:#9D014B; text-decoration:none;} .address {font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:bold; color:#ffffff; text-decoration:none;} .subheader-text {font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#9D014B; text-decoration:none;} .text {font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#073A74; text-decoration:none;} .table-bg {background-color:#005793;} #dropmenudiv{ position:absolute; background-color: #ffffff; border:1px solid black; border-bottom-width: 0; font:normal 10px arial; line-height:18px; z-index:100; } #dropmenudiv a{ width: 100%; display: block; color: #073A74; text-indent: 3px; border-bottom: 1px solid black; padding: 1px 0; text-decoration: none; font-weight: bold; } #dropmenudiv a:hover{ /*hover background color*/ background-color: #E8C4C6; } |
| |
| | #9 |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,859
![]() ![]() ![]() ![]() ![]() | When the picture, which repeats- is the background of the body, than You should attach a class attribute to it in the html code e.g. <body class="body">. After this you should add some row into Your css document, something like this: .body{ background: url(image.png) no-repeat; }
__________________ █ Time may come when you will need an excellent eCommerce shopping cart software █ free seo related web directory precíziós mérleg Free shopping cart |
| |
| | #10 |
| Junior Member Join Date: Jul 2006 Location: Derby
Posts: 37
![]() | Thanks a lot for that |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Most Search users stop at page three | midlandi | Marketing and Promotion | 0 | 11-16-2006 08:55 PM |
| Does .9 Repeating = 1? | Intripita-MH | General Talk | 4 | 10-28-2006 09:41 PM |
| Background check record search, background search unlimited | davidfrank | Advertise your website | 1 | 10-24-2006 01:55 AM |
| results repeating for each user | meth0d420 | PHP | 1 | 09-20-2006 07:53 AM |
| WebmasterTrades.com - Stop paying $9.95 to sell your site! | Skribblez | Advertise your website | 0 | 04-21-2006 10:50 AM |