vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   css help... (https://vborg.vbsupport.ru/showthread.php?t=206219)

Winterworks 02-22-2009 12:55 PM

css help...
 
This is a code in my index.php.

Code:

<div class="testimonial_smiley">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

"test test hehe test rofl"

</div>

Here is part of my CSS.

Code:

.testimonial_smiley {
        float:left;
        width:200px;
        height:32px;
        text-decoration: none;
        font-size: 12px;
        color: #000000;
        background:url('images/smiley.png') no-repeat top left;

}

So right now, it shows the smiley icon (32px by 32px), but the text only aligns beside it because I added all of those &nbsp;'s. How can I make the text align beside the smiley image only? Like align it to the left by 34px or something (the image is 32px width and height).

Also, in CSS, how can I make the text italic? Do I just edit "text-decoration: none;" to "text decoration: italic;"? What do I do?

edit: to clarify on #1, I want it so like..

Code:

[img here]        Text aligns
                  like this
                  all the way
                  down the
                  page.

instead of...

Code:

[img here] Text aligns
like this
all the way
down the
page.


UKBusinessLive 02-22-2009 01:31 PM

Mike take a look at the following ;)
Add this to your <head> of your Page

Code:

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
<style type="text/css"><!--
.sign {
font-style:italic;
}
--></style>
</head>

and In the <body> where you want to make the words italic, just use

Code:

<span class ="sign"> Your Text here </span>
look at the example below mate

Code:

<body>
<h1>Test</h1>
<p>
You can make text <span class="sign">italic</span> using CSS.
</p>
</body>
</html>


Winterworks 02-22-2009 01:33 PM

I actually wanted it in an external CSS file. I took the "font-style:italic;" part to the external CSS stylesheet, and it worked. Thanks very much. =)

Still need help with my first problem though.


All times are GMT. The time now is 02:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01022 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete