Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 9 users online :: 0 Registered, 0 Hidden and 9 Guests :: 1 Bot
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
[SOLVED] Post background problem
Page 1 of 1 • Share
Hi @Ange Tuteur
I have been making a thread that will post the background in a table but i just can't work out how to make the background Change to the size of the box on its own
here is the Code i am using
Much Thanks for any help you can give me
Bob
I have been making a thread that will post the background in a table but i just can't work out how to make the background Change to the size of the box on its own
here is the Code i am using
- Code:
[table class="posting-table" style="border: 1px solid rgb(0, 114, 149);" cellspacing="0" width="100%"][tr][td style="background-image: url(http://i39.servimg.com/u/f39/12/23/10/57/ann_to11.png); background-repeat: no-repeat;" height="100" width="152"][/td]
[td style="background: transparent url(http://i39.servimg.com/u/f39/12/23/10/57/ann_ce11.png) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; padding-bottom: 15px;"][center][color=#1675bc][b][size=16][img(50px,50px)]http://i38.servimg.com/u/f38/19/05/63/16/movies10.png[/img] New Movie's and TV forum Now open[/size][/b][/color] [img(40px,40px)]http://i38.servimg.com/u/f38/19/05/63/16/icon_f11.png[/img][/center]
[/td]
[td style="background-image: url(http://i39.servimg.com/u/f39/12/23/10/57/ann_ri12.png); background-repeat: no-repeat;" width="84"][/td]
[/tr]
[/table]
[table class="posting-table" style="border-left: 1px solid rgb(0, 114, 149); border-right: 1px solid rgb(0, 114, 149); border-bottom: 1px solid rgb(0, 114, 149);" cellspacing="0" width="100%"][tr][td style="padding-left: 5px; padding-right: 5px; background-image: url(http://i38.servimg.com/u/f38/19/05/63/16/stock-10.jpg); background-repeat: no-repeat;" width="100%"]
[/td]
[/tr]
[/table]
[table class="posting-table" style="border-left: 1px solid rgb(0, 114, 149); border-right: 1px solid rgb(0, 114, 149); border-bottom: 1px solid rgb(0, 114, 149);" cellspacing="0" width="100%"][tr][td style="background: rgb(247, 247, 247) none repeat scroll 0% 0%; text-align: justify; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; padding-left: 5px;"][center][b] A[color=#0066cc] chat World[/color] Official Announcement[/b][/center]
[/td]
[td style="background: transparent url(http://i39.servimg.com/u/f39/12/23/10/57/bottom13.png) No-repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" height="100" width="140"][/td]
[/tr]
[/table]
Much Thanks for any help you can give me
Bob
Here try this :
Use the background-size property to manipulate the size of the background image. You can find some info on it here, if you want.
I used cover which scales the image to cover the entire background area. You can also use percentages, like so :
- Code:
[table class="posting-table" style="border: 1px solid rgb(0, 114, 149);" cellspacing="0" width="100%"][tr][td style="background-image: url(http://i39.servimg.com/u/f39/12/23/10/57/ann_to11.png); background-repeat: no-repeat;" height="100" width="152"][/td]
[td style="background: transparent url(http://i39.servimg.com/u/f39/12/23/10/57/ann_ce11.png) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; padding-bottom: 15px;"][center][color=#1675bc][b][size=16][img(50px,50px)]http://i38.servimg.com/u/f38/19/05/63/16/movies10.png[/img] New Movie's and TV forum Now open[/size][/b][/color] [img(40px,40px)]http://i38.servimg.com/u/f38/19/05/63/16/icon_f11.png[/img][/center]
[/td]
[td style="background-image: url(http://i39.servimg.com/u/f39/12/23/10/57/ann_ri12.png); background-repeat: no-repeat;" width="84"][/td]
[/tr]
[/table]
[table class="posting-table" style="border-left: 1px solid rgb(0, 114, 149); border-right: 1px solid rgb(0, 114, 149); border-bottom: 1px solid rgb(0, 114, 149);" cellspacing="0" width="100%"][tr][td style="padding-left: 5px; padding-right: 5px; background-image: url(http://i38.servimg.com/u/f38/19/05/63/16/stock-10.jpg); background-repeat: no-repeat;background-size:cover;" width="100%"]
[/td]
[/tr]
[/table]
[table class="posting-table" style="border-left: 1px solid rgb(0, 114, 149); border-right: 1px solid rgb(0, 114, 149); border-bottom: 1px solid rgb(0, 114, 149);" cellspacing="0" width="100%"][tr][td style="background: rgb(247, 247, 247) none repeat scroll 0% 0%; text-align: justify; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; padding-left: 5px;"][center][b] A[color=#0066cc] chat World[/color] Official Announcement[/b][/center]
[/td]
[td style="background: transparent url(http://i39.servimg.com/u/f39/12/23/10/57/bottom13.png) No-repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" height="100" width="140"][/td]
[/tr]
[/table]
Use the background-size property to manipulate the size of the background image. You can find some info on it here, if you want.
I used cover which scales the image to cover the entire background area. You can also use percentages, like so :
- Code:
body { background-size:100% 100% }
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum