-
AuthorPosts
-
James Weston Friend
James Weston
- Join date:
- September 2014
- Posts:
- 1030
- Downloads:
- 11
- Uploads:
- 70
- Thanks:
- 408
- Thanked:
- 16 times in 1 posts
January 10, 2018 at 2:49 am #1085931Hi Guys,
I have the following code in a joomla article but for some reason the result sees the frame aligned to the right of the page. I found this solution <iframe align="middle"> but not sure where to insert it. Have tried a few different places but can’t get it to work.
@media screen and (max-width:675px){
#iframe{
min-height:1388px;
overflow-y: scroll;
}
}<iframe id="iframe" src="https://www.xxxxx" scrolling="no" style="width:100%;height:734px;border:none;overflow:hidden;">
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 10, 2018 at 3:48 am #1085942Hi
You can insert the CSS code in a custom.css file and the iframe code in the article editor source code where you want to add the iframe on your site.
if any issue shares the URL of the page with me, I will have a look at it.Regards
1 user says Thank You to Pankaj Sharma for this useful post
James Weston FriendJames Weston
- Join date:
- September 2014
- Posts:
- 1030
- Downloads:
- 11
- Uploads:
- 70
- Thanks:
- 408
- Thanked:
- 16 times in 1 posts
January 10, 2018 at 3:53 am #1085945Hi Pankaj,
Sorry you mean put the <iframe align="middle"> in the custom.css file?
The page url is http://www.theplatinumlist.com/join
Jim
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 10, 2018 at 4:12 am #1085951Hi
Add below code in custom.css file#page-wrapper { max-width: 900px; margin: 0 auto; }
change the width as per needs.
Regards
1 user says Thank You to Pankaj Sharma for this useful post
James Weston FriendJames Weston
- Join date:
- September 2014
- Posts:
- 1030
- Downloads:
- 11
- Uploads:
- 70
- Thanks:
- 408
- Thanked:
- 16 times in 1 posts
January 10, 2018 at 4:17 am #1085954Thanks but it is still aligned to the right.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 10, 2018 at 4:23 am #1085957Hi
Apply the style in iframe code you added in the page wrapper class as its in iframe
http://prntscr.com/hycg1nRegards
1 user says Thank You to Pankaj Sharma for this useful post
James Weston FriendJames Weston
- Join date:
- September 2014
- Posts:
- 1030
- Downloads:
- 11
- Uploads:
- 70
- Thanks:
- 408
- Thanked:
- 16 times in 1 posts
January 10, 2018 at 4:34 am #1085958Like this?
page-wrapper {
max-width: 900px;
margin: 0 auto; style="width:100%; height:734px;border:none;overflow:hidden;
}Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 10, 2018 at 6:42 am #1085972Hi
The style is coming from an external website that you added in the iframe which can not be changed.
You can use this code in iframe<iframe id="iframe" src="https://apply.cardskipper.se/if4" scrolling="no" style="width:100%;height:734px;border:none;overflow:hidden;margin: 0 auto;max-width: 900px;"></iframe>
use this code as iframe and change max-width value.
Regards
1 user says Thank You to Pankaj Sharma for this useful post
James Weston FriendJames Weston
- Join date:
- September 2014
- Posts:
- 1030
- Downloads:
- 11
- Uploads:
- 70
- Thanks:
- 408
- Thanked:
- 16 times in 1 posts
January 10, 2018 at 6:57 am #1085977Thanks Pankaj that has worked a treat on the computer. Now I need to figure out how to change it on the responsive screen of a mobile device. Will do some research online. Many thanks for all your input and guidance.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
-
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by Pankaj Sharma 6 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum