GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need CSS help pleaseee (https://gfy.com/showthread.php?t=1014606)

Juicy D. Links 03-17-2011 09:22 AM

Need CSS help pleaseee
 
Logo is left aligned in FF and Chrome but not IE


CSS is below:


Code:

#header .line1 .logo a img {
        width: 456px;
        height: 50px;


What can i add to make it left aligned for a image?

machinegunkelly 03-17-2011 09:28 AM

.logo {
text-align:left;}

Should likely do it ?

Would have to see the code you're working with man.

mc-nudes 03-17-2011 09:28 AM

float: left;

adult-help 03-17-2011 09:39 AM

left aligned to what? without code is just guessing but you have to set parent element to text-align:left like machinegunkelly said.Could not work in some cases - you gave us too little..

KickAssJesse 03-17-2011 09:40 AM

Quote:

Originally Posted by machinegunkelly (Post 17986073)
.logo {
text-align:left;}

Should likely do it ?

Would have to see the code you're working with man.

Agreed; it can be one of many things, however, based on what was provided, this makes the most sense.

Quote:

Originally Posted by mc-nudes (Post 17986074)
float: left;

Somewhat correct, however you must clear floats after the div or it'll run into other position/spacing issues.

machinegunkelly 03-17-2011 09:42 AM

Quote:

Originally Posted by KickAssJesse (Post 17986097)
Agreed; it can be one of many things, however, based on what was provided, this makes the most sense.



Somewhat correct, however you must clear floats after the div or it'll run into other position/spacing issues.

Yeah I wasn't gonna suggest a float, it will lead him to a nightmare if he's not versed on clear's etc. :1orglaugh

We need the header code to give the best answer.

Juicy D. Links 03-17-2011 09:49 AM

Sec lololol let me get you DATA!!!!!!!!! lolol

Juicy D. Links 03-17-2011 10:03 AM

Code:

<div class="line1">
  <div class="logo">
    <a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt="" align="left"></a>
  </div>
  {include file="customer/tabs.tpl"}
  {include file="customer/phones.tpl"}
</div>


Thats in the template

machinegunkelly 03-17-2011 10:07 AM

Yeah, I'd try the CSS I put above then.

KickAssJesse 03-17-2011 10:09 AM

Code:

<div class="line1">
  <div class="logo" style="text-align:left;">
    <a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt=""></a>
  </div>
  {include file="customer/tabs.tpl"}
  {include file="customer/phones.tpl"}
</div>

I would removed the align="left" from the image unless you have content to the right of it.
Adding the style of text-align: left should solve your problem.

Davy 03-17-2011 10:31 AM

Float left and then a clearing div afterwards.

Juicy D. Links 03-17-2011 11:48 AM

Quote:

Originally Posted by Davy (Post 17986214)
Float left and then a clearing div afterwards.

float:right; didnt do the trick

Juicy D. Links 03-17-2011 11:51 AM

Quote:

Originally Posted by KickAssJesse (Post 17986150)
Code:

<div class="line1">
  <div class="logo" style="text-align:left;">
    <a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt=""></a>
  </div>
  {include file="customer/tabs.tpl"}
  {include file="customer/phones.tpl"}
</div>

I would removed the align="left" from the image unless you have content to the right of it.
Adding the style of text-align: left should solve your problem.

text-align: left didnt help either

redwhiteandblue 03-17-2011 12:00 PM

Quote:

Originally Posted by Juicy D. Links (Post 17986423)
text-align: left didnt help either

It should be the CSS machinegunkelly posted. But maybe in IE anchors don't inherit their text alignment from the parent or something, so it might be

Code:

.logo a
{
text-align:left;
}


Juicy D. Links 03-17-2011 12:20 PM

Quote:

Originally Posted by redwhiteandblue (Post 17986448)
It should be the CSS machinegunkelly posted. But maybe in IE anchors don't inherit their text alignment from the parent or something, so it might be

Code:

.logo a
{
text-align:left;
}


I am gonna look at the CSS for the admin section which is working

it shows

Code:

.HeadLogo {
        PADDING-LEFT: 27px;
        TEXT-ALIGN: left;
  HEIGHT: 65px;


redwhiteandblue 03-17-2011 12:25 PM

Maybe set the width and height of the containing div:

Code:

.logo
{
width:100%;
height:auto;
text-align:left;
}


machinegunkelly 03-17-2011 12:37 PM

With IE, it could be fuckin' anything... god damned browser.
the chances of us solving this over a message board are likely slim.

I sent you an ICQ juicy, I'll take a look at the code for ya if you link me.


All times are GMT -7. The time now is 05:06 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123