Forum Moderators: coopster

Message Too Old, No Replies

padding for logo

         

member22

10:00 pm on Sep 22, 2008 (gmt 0)

10+ Year Member



Hello,

I am trying to put a padding to the right of my logo so that it doesn't touch the right side of my site but don't manage and don't know what line of code I need to write to put the padding.

I need your help,can you please give me the correct line of code.

Thank you,

<div id= <a href="'. URL_ROOT .'/" onclick="mysite.Page.Open('. $homepage_oid .'); return false;"><IMG ALIGN="Right";float: right; src="'. DIR_PIC .'/mylogo.png" alt="" /></a></div>
<div id="foot-speech">' . $p->FooterRefLinks() . '</div>

PHP_Chimp

11:01 pm on Sep 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As you are trying to use CSS you need to use the style attribute.

<IMG style="float: right;padding-right: 1em;" src="'. DIR_PIC .'/mylogo.png" alt="" />

Give that a try.

member22

7:32 am on Sep 23, 2008 (gmt 0)

10+ Year Member



Thank you it works !

Just one more thing :

I am also trying to align on the top right side of my website the following newsletter box and can't get it aligned to the right and on the same line as the text on the left ?

Can you tell me what line of code I am missing to first align right, then on the same line as my text on the left and finally where to put it in this code below ? I guess I need to put a div somewhere but i have no idea where

Thanks,

<link href="NL-style.css" rel="stylesheet" type="text/css">
<form name="form1" method="post" action="NLprocess.php" class="bk">
<fieldset>
<p align="center" class="txt">Subscribe E-mail:<br>
<input name="email" type="text" size="12" class="txtbox">
<input type="submit" name="Submit" value="Go" class="button">
<br>
</fieldset>
</form>

member22

9:53 pm on Sep 22, 2008 (gmt 0)

10+ Year Member




System: The following 3 messages were spliced on to this thread from: http://www.webmasterworld.com/php/3749901.htm [webmasterworld.com] by dreamcatcher - 9:25 am on Sep. 23, 2008 (utc 0)


Hi,

I am trying to align on the top right side of my website the following newsletter box and can't get it aligned on the right and on the same line as the text on the left ?

Can you tell me what line of code I am missing to first align right, then on the same line as my text on the left and finally where to put it in this code below ?

Thank you,
Mike

<link href="NL-style.css" rel="stylesheet" type="text/css">
<form name="form1" method="post" action="NLprocess.php" class="bk">
<fieldset>
<p align="center" class="txt">Subscribe E-mail:<br>
<input name="email" type="text" size="12" class="txtbox">
<input type="submit" name="Submit" value="Go" class="button">
<br>
</fieldset>
</form>

PHP_Chimp

11:12 pm on Sep 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How is the rest of your site positioned? Is it static or relative, or some other means?

I guess that you will need to put the form in a div and statically position that div. You will then need to do the same with the rest of your content, so that they flow around each other.

member22

7:09 am on Sep 23, 2008 (gmt 0)

10+ Year Member



It is static. if could give me the line of code that would be awesome.

Thx,

dreamcatcher

9:26 am on Sep 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I merged these two topics together. Please don`t start the same discussion in two threads.

dc

PHP_Chimp

9:40 pm on Sep 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it is a statically positioned site then I guess that you have some css like:

div#right_col {position: static; top: 155px; left: 355px; width: 350px;}
div#left_col {position: static; top: 5px; left: 5px; width:350px;}
div#news_right {position: static; top 5px; left: 355px; width: 350px; height: 150px;}

As that will give you 2 columns that are 350px wide, with a 5px gap on the left side of the screen.

You would be better using relative units, so I would suggest asking on the CSS [webmasterworld.com] forum for better code. However that will get you going for the time being.

PHP_Chimp

11:22 am on Sep 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oops that shouldnt be position: static, it should be position: absolute.

Sorry.