CSS - Inputting Text And Outputting Css Program...
i need to know how to create a program which we use to input text into a forum in this case like the 1 im tying...could some1 find a tutorial for me.......my use isto input text and then make a css script of the formatted text entered and use it for somethig else
Similar TutorialsSee the thin box on the right displaying forum posts in the below. I'm only concerned with the thin boxes width being to the edge of the page in IE and not in firefox. I realise it's also positioned wrongly in IE but I'll come to that later... This page works This page doesn't In the one that works I'm outputting: Code: <div id="latestposts"> <a class='sidelist' href='/board'>Discussion Forum</a> <ul> <li id='sidelist'> <a class='sidelist' href='board'>Djembefaso Gigs coming up in Dublin</a> <p class='sidelisttext'>SmallText</p></li> <li id='sidelist'><a class='sidelist' href='board'>Recordings anybody!!</a><p class='sidelisttext'>SmallText</p></li> In the broken one I'm outputting: Code: <ul> <li id='sidelist'> <a class='sidelist' href='board'>Djembefaso Gigs coming up in Dublin</a> <p class='sidelisttext'>Djembefaso play at the Camden </p> </li> The differnce in the code is that in the broken one I am outputting "Djembefaso play at the camden" from a php variable $Smalltext (I took off the dollar sign and the formatting works). This problem only occurs in IE. Can anybody help I'm stumped... Thanks I would like to pop up the text, that is, make it bigger when the user hovers on it. but the problem everytime the text gets bigger, the whole row moves and the surrounding texts gets displaced. any idea ? tutorial? let me know if i need to explain more. Good Morning All, Been having a slight problem with the visual in the screenshot below. The blue line is our H2, and the purple one is our H3, however, as you can see, the underline spans the entire width of the column, not just underneith the text, which is our requirement. ***As i am not allowed to upload a url as a new user, the underline is as follows. With the text centre aligned. text ----------------------------------------------------------- rather than text ------ and obviously by the css, the underline on the headers is a small image, repeated - x. Please see relevant css information. * (line 23) { margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0pt; padding-top: 0pt; padding-right: 0pt; padding-bottom: 0pt; padding-left: 0pt; } h2, h3, h4, h5, h6 (line 101) { font-size: 1.2em; font-weight: normal; padding-bottom: 4px; margin-top: 0.6em; margin-right: 0pt; margin-bottom: 0.8em; margin-left: 0pt; text-align: center; } .contentArea h2, #secondaryNavigation h2 (line 114) { background-color: transparent; background-image: url("../images/h2_gradient_bg.gif"); background-repeat: repeat-x; background-attachment: scroll; background-position: left bottom; color: #0066cc; } Many Thanks in advance. Marc. can someone help me with this? here is the page&css I have been working on... the page file the css file I might be silly to use a template that I did on illustrator (with all the banner, boxes and navbar read and just use that as my container background. then I made some transparent boxes for puting in text, images or form elements. Is that why I am not able to select any other those things on the site? this is the first time I try using css to make the whole webpage, so I would appreciate any guidance...thanks!! I know how to position regular text using the in-line style "text-align:right", but when I try to do that with a link I get nowhere. Simplified example: Code: <html> <body> <td><p style="text-align:right">Google</p></td> <td><a href="http://www.google.com" style="text-align:right">Google</a></td> <td><a style="text-align:right" href="http://www.google.com">Google</a></td> <td><span style="text-align:right"><a href="http://www.google.com">Google</a></span></td> <td style="text-align:right"><a href="http://www.google.com" style="text-align:right">Google</a></td> <span style="text-align:right"><td><a href="http://www.google.com" style="text-align:right">Google</a></td></span> </body> </html> The first body line works fine to move the text to the right, but the link in lines 2-5 of the body are stuck on the left. Any suggestions? (My actual code invokes a class from a css page in a particular <td> and I'm trying to force a link in that <td> to the right using an in-line style; while I can do that for regular text I haven't found the secret of doing that for a link.) i have almost perfected the text wrap for this page.... http://defunctgames.com/helpfix/relevent.php4 problem is, i put a margin-top:50px on the image, and i want the text above the image, to flow all the way to the left. thus fully wraping the text. I saw a website that was throwing text that was written and recalling it with a link into a textbox...are there any tuts or anyone help me out with this one thanx aim rpduece Hi. See code below. Why does the outer SPAN in TABLE not grow with the image height. If the text is longer so it is forced below image then it looks as it should. Please also read some comments in the code. Code: <html><body><center><br><br> Why does image not force the outermost span to be at least as high as image?<br> If the text are long enough and gets below the bottom border of image it look good though.<br><br> NOTE: I need to put Image and text either within separate span or in same span as the examples below.<br> In my real application I'm using an <a href=" ...> around the outer span in examples below.<br> <br><br> <table border=1 cellpadding=0 cellspacing=0 width=200px><tr><td> <span style="display:block; background-color:#ffa827; padding-top:10px; padding-left:10px; padding-right:10px;"> <span style="display:block; float:left"> <img src="landscape.jpg" height="40px" width="40px" alt="" border="0"> </span> <span style="display: block; color: white;"> Text here. </span> </span> </td></tr></table> <br><br> <table border=1 cellpadding=0 cellspacing=0 width=200px><tr><td> <span style="display:block; background-color:#ffa827; padding-top:10px; padding-left:10px; padding-right:10px; color: white;"> <img src="landscape.jpg" height="40px" width="40px" alt="" border="0" style="float:left"> Text here. </span> </td></tr></table> </center></body></html> Is it possible to have text run around a div positioned with absolute positioning? Hi, Howdo you get text and and image on the same line. I want text and 2 images on the same line but the image appears on the next line like a <br> has been entered. There is plenty of room for all data.Each has its own <div>. Hmm, This is a problem that has plagued me for a while, but just recently decided to find a solution. Basically I like to single out words for empasis on certain pages. Well with EM that's fine. However on a new website I'm coding I need to do (TYPE 1 FONT) (TYPE 2 FONT) (TYPE 3 FONT). All are different decorations. Is there a way to create a tag for each word? Thanks. Based on the questions I see being asked and answered here, I'm concerned many of you will laugh at my ignorance, but here goes anyway. I want to know how to use CSS on just a little text. For example, let's say I want to render One-Two-Three-BOOM as text on a Web page, except that what I really want is for the BOOM part to be in a larger font and bold-faced. Can that be done using CSS? Can I select the BOOM part in Front Page 2003 and impose a CSS style to those four letters and only those four? Everything I try, based on the CSS file I'm using, results in applying the new style to all of the text within a whole paragraph. I want to be able to apply the style to just a little text at a time. As another example, I want to render the following two lines Johnny G. Doe 123 West South Street in such a way that, using CSS to control everything, I can get the second line to appear in a smaller font. I can get it to work if there's a <p> between the two lines, but not if I want to separate them with a <br>. I'm not asking whether it's a good idea to use CSS this way, I'm just asking how to do it. I will try to attach a file to this thread that shows the first several lines of the CSS file I'm using, in case that makes a difference. If this doesn't work, please let me know. Thanks. --Johnny I'm having trouble with a page I'm working on- I posted here a few weeks ago with something sort of similar. This time, though, I'm at a loss, I've tried several different things but nothing worked. http://www.geocities.com/nny555/eup/newschedule.html As you can see, the div where the content is, the text is stretching right through the div. Is there any way to fix this? Is it possible to fade text using the DOM or CSS? My client can not let go of the idea of critical copy fading into the page. I do not want to use SEO unfriendly flash or .gif to do this. Is this possible? Thanks S i copied some of this code from a page i liked. all it is is a background image and i want to type text over it that is in a table. the problem is i cannot center my text ("<?=$information[nickName]?>"). the text always is on the left, never in the center. i have tried different things such as <td align=center> as opposed to the <td valign=center> the other author has in the 2nd block, the align:center does not work with font. and i have tried appending a ;text-align:center within that SPAN tag, but that does not work either. does anyone have any advice??? thanks! <table border=0 cellspacing=0 cellpadding=0 width="750" style="border: solid black 2px;"> <tr><td style="background-image:url(images/name_test.jpg); background-attachment: 100% 0%"> <table border="0" cellspacing=0 cellpadding=1><TR><TD valign="center"><SPAN style="font-size: 14pt; font-family: arial black, helvetica; padding: 3px; align: center;"><?=$information[nickName]?></SPAN></TD></TR> </table> Ok, I have a menu (that I did not build, that I got from a template) that I cannot seem to figure out how to center the text in, and it's driving me crazy. I have done the validation, and debugged it as much as I can, but I'm not a css guru, so I was hoping someone here can help me. I feel like I've tried everything. So you can see the menu at www.eliteoutfittersutah.com/new. The menu at the top I am desperate to center. I have been able to modify everything else through the css, but just can't seem to get the text alignment centered. I have checked the js files as well, but don't think it's in there. I think it just might be missing a tag? Any help would be GREATLY appreciated. The styles.css is (and of course you can view the page code from the page itself when you look at the menu): Code: @charset "utf-8"; /* CSS Document */ /* Easy Slider */ a:link { color:#333333; text-decoration: none; font-weight: bold; } a:active { color:#333333; text-decoration: none; font-weight: bold; } a:hover { color:#052807; text-decoration: none; font-weight: bold; } a:visited { color:#333333; text-decoration: none; font-weight: bold; } a:visited:hover { color:#052807; text-decoration: none; font-weight: bold; } #slider ul, #slider li, #slider2 ul, #slider2 li{ margin:0; padding:0; list-style:none; } #slider2{ margin-top:1em; } #slider li, #slider2 li{ /* define width and height of list item (slide) entire slider area will adjust according to the parameters provided here */ width:1018px; height:336px; overflow:hidden; } /* numeric controls */ ol#controls{ margin:3px 0; padding:0; padding-left:10px; height:20px; } ol#controls li{ margin:0 10px 0 0; padding:0; float:left; list-style:none; height:20px; line-height:20px; } ol#controls li a{ float:left; height:20px; line-height:20px; border:1px solid #ccc; background:#d3d3d3; color:#555; padding:0 5px; text-decoration:none; } ol#controls li.current a{ background:#052807; color:#FFFFFF; } ol#controls li a:focus, #prevBtn a:focus, #nextBtn a:focus{outline:none;} /* // Easy Slider */ .lavaLampWithImage { position: relative; height: 68px; width: 1018px; overflow: hidden; background-image: url(../images/navbg.png); background-repeat: no-repeat; background-position: top; padding-top: 15px; padding-left: 0px; } .lavaLampWithImage li { float: left; list-style: none; } .lavaLampWithImage li.back { background: url("../images/lava.png") no-repeat right -34px; width: 9px; height: 34px; z-index: 8; position: absolute; } .lavaLampWithImage li.back .left { background: url("../images/lava.png") no-repeat top left; height: 34px; margin-right: 9px; /* 7px is the width of the rounded shape */ } .lavaLampWithImage li a { font: 17px arial; font-weight: bold; text-decoration: none; color: #FFFFFF; outline: none; text-align: center; top: 7px; text-transform: uppercase; letter-spacing: 0; z-index: 10; display: block; float: inherit; height: 34px; position: relative; overflow: hidden; margin: 0 12px; } .lavaLampWithImage li a:hover, .lavaLampWithImage li a:active, .lavaLampWithImage li a:visited { border: none; } body { background-image: url(../images/bg.gif); background-repeat: repeat-x; } body, html { height: 100%; margin: 0; } #st2, #st3 { display: none; } #wrapper { width: 1018px; margin: 0 auto; font-family: Arial, Helvetica, sans-serif; font-size: 15px; color: #333333; } #topbar { height: 22px; margin-top: 5px; padding: 5px; } #skin { float: right; width: 180px; text-align: right; font-size: 11px; text-transform: uppercase; } #skin ul { margin: 0px; padding: 0px; } #skin li { list-style-type: none; display: inline; padding-left: 10px; padding-right: 10px; } #skin a:link { text-decoration: none; color: #FFFFFF; } #skin a:visited{ text-decoration: none; color: #FFFFFF; } #nav { height: 90px; } #header { height: 370px; font-size: 11px; } #content { padding: 10px; clear: both; margin-bottom: 10px; overflow: hidden; } #footer { background-image: url(../images/footer.jpg); background-repeat: no-repeat; height: 80px; width: 1010px; text-align: center; padding-top: 20px; clear: both; color: #FFFFFF; } #left { float: left; width: 670px; } #right { float: right; width: 260px; padding-left: 30px; border-left-width: 1px; border-left-style: solid; border-left-color: #CCCCCC; } .brownheadline { font-size: 35px; font-weight: bold; color: #ab4d1b; letter-spacing: -1px; line-height: 30px; } .greenheadline { font-size: 35px; font-weight: bold; color: #052807; letter-spacing: -1px; line-height: 30px; } .browntitle { font-size: 42px; font-family:"Times New Roman"; font-weight: bold; color: #ab4d1b; letter-spacing: -1px; line-height: 30px; } .greentitle { font-size: 42px; font-family:"Times New Roman"; font-weight: bold; color: #052807; letter-spacing: -1px; line-height: 30px; } .leftimg { float: left; padding-right: 15px; display: block; } .greentext { font-weight: bold; color: #052807; } .browntext { font-weight: bold; color: #36a0e7; } .style1 { color: #6A2C0D; } .greyline { background-color: #CCCCCC; height: 1px; margin: 8px 0 8px 0; } #contact { color: #696969; padding: 5px; } #contact input { font-family: Arial, Helvetica, sans-serif; font-size: 14px; padding: 6px; border: 1px solid #696969; width: 250px; margin: 5px 0 5px 0; } #contact label { float: left; width: 80px; display: block; padding: 3px; margin: 3px 0 3px 0; clear: both; } #contact textarea { border: 1px solid #696969; font-family: Arial, Helvetica, sans-serif; font-size: 14px; padding: 6px; width: 250px; margin: 5px 0 5px; } Ive just finished building my site and ive implemented a text only alternative. I have not used CSS deliberately as i am unsure whether this, in some cases, is not supported by certain browsers. Reason i ask is because i want to specify font size as a % rather than px or pt so that end users can change the view to text "small" or "large" Would i be better off doing this in the html or by attaching a CSS? Thanks in advance, cuban OK I have a layer that is described here : div#footer { position: absolute; top: 0; left: 0; width: 100%; height:14; background-color: #EED; font: 10px Verdana, sans-serif;} In this layer I wish to have some text in the left of the bar and at the far right (align-right) some text also ... how would i achieve this ??? -Thanks- |