Login Register


HTML/CSS help thread filter_list
Author
Message
RE: HTML/CSS help thread #31
Hello again.

So I managed to vertically align center text on right side of pic, like picture caption. Here is what I mean: http://prntscr.com/8idvsx (don't mind about that thumb)
However as you can see problem is that if text is too long it jumps to below the picture. Can someone help me fix that? Thanks :-)

Code:
<div> <img src="http://i.imgur.com/nV8MeeE.jpg" height="200" style="vertical-align: middle;" width="157" /> <span style="font-family: &quot;Courier New&quot;,Courier,monospace;"><span style="font-size: large;">"Some people will always need help. That doesn't mean they're not worth<br />helping." </span></span></div>
Listen, smile, agree, and then do whatever the fuck you were gonna do anyway.

Reply

RE: HTML/CSS help thread #32
(hug) I dont need help but i can help others  (hug)

Reply

RE: HTML/CSS help thread #33
(09-20-2015, 11:20 AM)Illuminati Wrote: Hello again.

So I managed to vertically align center text on right side of pic, like picture caption. Here is what I mean: http://prntscr.com/8idvsx (don't mind about that thumb)
However as you can see problem is that if text is too long it jumps to below the picture. Can someone help me fix that? Thanks :-)

Code:
<div> <img src="http://i.imgur.com/nV8MeeE.jpg" height="200" style="vertical-align: middle;" width="157" />  <span style="font-family: &quot;Courier New&quot;,Courier,monospace;"><span style="font-size: large;">"Some people will always need help. That doesn't mean they're not worth<br />helping." </span></span></div>
couldnt you do something like this

HTML
<li id="CN2787">
  <img class="fav_star" src="http://i.imgur.com/nV8MeeE.jpg">
  <p>
     <span>"Some people will always need help. That doesn't mean they're not worth<br />helping."</span>
  </p>
</li>

CSS
li p{width: 100px; margin-left: 157px}
.fav_star {width: 100px;float:left}
You mind is programmable – if you’re not programming your mind, someone else will program it for you.

Reply

RE: HTML/CSS help thread #34
(09-21-2015, 01:08 PM)Captin_Lulzboat Wrote: couldnt you do something like this

HTML
<li id="CN2787">
  <img class="fav_star" src="http://i.imgur.com/nV8MeeE.jpg">
  <p>
     <span>"Some people will always need help. That doesn't mean they're not worth<br />helping."</span>
  </p>
</li>

CSS
li p{width: 100px; margin-left: 157px}
.fav_star {width: 100px;float:left}

Bad practice to use caps in ID or class.
[img=0x150]http://imgur.com/BD5LxZb.png[/img]
I'm done being an autism.  

Reply

RE: HTML/CSS help thread #35
(09-21-2015, 01:08 PM)Captin_Lulzboat Wrote: couldnt you do something like this

HTML
<li id="CN2787">
  <img class="fav_star" src="http://i.imgur.com/nV8MeeE.jpg">
  <p>
     <span>"Some people will always need help. That doesn't mean they're not worth<br />helping."</span>
  </p>
</li>

CSS
li p{width: 100px; margin-left: 157px}
.fav_star {width: 100px;float:left}

Tried, now it looks like this
[Image: nqRUDPW.png]
Listen, smile, agree, and then do whatever the fuck you were gonna do anyway.

Reply







Users browsing this thread: