The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How Do I Display Text Within A Frame (In Frames)
greakan
post Jan 5 2011, 11:26 AM
Post #1





Group: Members
Posts: 1
Joined: 5-January 11
Member No.: 13,529



I'm trying to create a simple two column frame to place within an HTML widget on my blogger blog. I would like each frame to hold an image at the top of the frame and formatted text below the image. I will format the text with css, I just can't figure out how to get text to display inside the frame. Below is the code I have started. How can I place text under the images?


<html>
<head>
<title>frames</title>
</head>

<frameset rows="100%" cols="50%,*" Frameborder=no framespacing=0 border=0>

<frame src="http://i46.tinypic.com/2hwhh4x.jpg">
<frame src="http://i50.tinypic.com/2ypd6w1.jpg">

</frameset>

</html>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jan 5 2011, 12:11 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,650
Joined: 10-August 06
Member No.: 7



You must create an HTML document that in turn contains the image and text.

Are you sure you need frames? They tend to create problems...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 5 2011, 01:58 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



You can't put frames inside a normal HTML document the way you've done. If you use frames FRAMESET replaces BODY. There is no BODY in the frameset document (but there of course is in the pages shown in the frames). Either you use frames or you don't. You can't have it both ways.
http://htmlhelp.com/reference/html40/frames/frameset.html

I think what you are looking for is IFRAME, inline frames AKA as embedded or floated frames. Same goes for IFRAME as for frames though, they are better avoided.
http://htmlhelp.com/reference/html40/special/iframe.html
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 08:18 AM