mnaidis Posted May 26, 2012 Share Posted May 26, 2012 Hey, I was trying to find out how to do the text/image inside the border.. like a title, like this: How do I do that? Quote Link to comment https://forums.phpfreaks.com/topic/263166-text-inside-a-border/ Share on other sites More sharing options...
floridaflatlander Posted May 26, 2012 Share Posted May 26, 2012 Is the image floated to the right? Is the image inside div or fieldset that you have in the picture? Quote Link to comment https://forums.phpfreaks.com/topic/263166-text-inside-a-border/#findComment-1348756 Share on other sites More sharing options...
mnaidis Posted May 26, 2012 Author Share Posted May 26, 2012 I don't know because it's not my site, if I want to do that in a div, then how do I do it? Quote Link to comment https://forums.phpfreaks.com/topic/263166-text-inside-a-border/#findComment-1348757 Share on other sites More sharing options...
floridaflatlander Posted May 26, 2012 Share Posted May 26, 2012 I don't know because it's not my site, if I want to do that in a div, then how do I do it? You're not looking at the code? Depending on floats or positions put the image in the div Quote Link to comment https://forums.phpfreaks.com/topic/263166-text-inside-a-border/#findComment-1348759 Share on other sites More sharing options...
mnaidis Posted May 26, 2012 Author Share Posted May 26, 2012 I don't know how to do it, that's why I have opened the topic, can you give me an example and show me how I do it with code? Quote Link to comment https://forums.phpfreaks.com/topic/263166-text-inside-a-border/#findComment-1348760 Share on other sites More sharing options...
Pikachu2000 Posted May 26, 2012 Share Posted May 26, 2012 You should look at the code on the site you want to copy instead of asking people to guess what the code is. Quote Link to comment https://forums.phpfreaks.com/topic/263166-text-inside-a-border/#findComment-1348766 Share on other sites More sharing options...
isonuZ Posted May 28, 2012 Share Posted May 28, 2012 Go to the website, click CTRL + U to display the source code. I'm guessing you already have a basic understanding of HTML/xHTML, so you should have no problem spotting the block of code required. Quote Link to comment https://forums.phpfreaks.com/topic/263166-text-inside-a-border/#findComment-1349261 Share on other sites More sharing options...
deathadder Posted June 30, 2012 Share Posted June 30, 2012 to do this with a fieldset you can just add <fieldset><legend>text/image</legend> content inside border </fieldset> to do this with a div you could put the image inside a a couple containers eg <div id="content"><div id="image"></div> </div> and set the id of image to float right and maybe set some margins to go negative, this probably isn't the best method but it should work Quote Link to comment https://forums.phpfreaks.com/topic/263166-text-inside-a-border/#findComment-1358091 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.