Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
help in positioning logo
Old 03-28-2012, 06:34 PM help in positioning logo
Skilled Talker

Posts: 87
Trades: 0
Hello,

I need some help placing the log that is attached here. I have attached the index and CSS html files. Basically I need to put that log on the top left side of the screen right next to the navigation tabs so kind of something like this


------------------------------------
|
| LOGO TAB1 TAB2 TAB3 TAB4
|
| rest of site....
|
------------------------------------

I have tried doing this but it doesn't work and I canŽt get it to look right. I end up messing up the whole structured so I thought IŽd asked here to see if anyone can advise how to do it?

Thanks
Attached Images
File Type: jpg logo_peq.jpg (4.1 KB, 6 views)
Attached Files
File Type: txt index.txt (5.2 KB, 5 views)
File Type: txt css.txt (4.5 KB, 3 views)
__________________

Please login or register to view this content. Registration is FREE
allan16 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-29-2012, 04:50 PM Re: help in positioning logo
chrishirst's Avatar
Defies a Status

Posts: 43,966
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Floats
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-29-2012, 05:54 PM Re: help in positioning logo
vultren's Avatar
Super Spam Talker

Posts: 790
Name: Tony
Location: Seattle Washington
Trades: 1
<div class="something">
<img src="something.something" height="something" width="something" alt="LOGO">

<ul class="something else">
<li><a href="something">TAB1</a></li>
<li><a href="something">TAB2</a></li>
<li><a href="something">TAB3</a></li>
<li><a href="something">TAB4 </a></li>
</ul>
</div>

Wrote the HTML in 30 seconds. Now float them using CSS.
__________________

Please login or register to view this content. Registration is FREE

"Do or do not, there is no try"
vultren is offline
Reply With Quote
View Public Profile
 
Old 03-29-2012, 06:26 PM Re: help in positioning logo
Skilled Talker

Posts: 87
Trades: 0
ok so I got to work pretty well now. Here is the code:

<div id="corner2">&nbsp;</div>
<div id="header">
<a href="index.html"><img src="logo_peq.jpg" alt="ipnetconsulting" width="230" height="72" /></a>
<div id="menu">
<ul>
<li><a href="index.html">home</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="experience.html">Experience</a></li>
<li><a href="contact_us.html">contact us </a></li>
</ul>
</div>

The only problem is that I dont know why the boarder of the logo is white and the actual jpg file does not have any white line for the boarder of the logo. any ideas?
__________________

Please login or register to view this content. Registration is FREE
allan16 is offline
Reply With Quote
View Public Profile
 
Old 03-29-2012, 06:52 PM Re: help in positioning logo
chrishirst's Avatar
Defies a Status

Posts: 43,966
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
add
a img {border:0;}

to your stylesheet.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-30-2012, 02:32 PM Re: help in positioning logo
Average Talker

Posts: 19
Trades: 0
Another way is to use the 'absolute positioning' in css to fine tune the position of the logo. This helps in case of complex HTML codes like tables etc.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
DragonSky is offline
Reply With Quote
View Public Profile Visit DragonSky's homepage!
 
Old 03-30-2012, 05:10 PM Re: help in positioning logo
Skilled Talker

Posts: 87
Trades: 0
doesn't appear to work. I have tried to the following:

+++++++++++++++++++

<div id="main"><div id="main2">
<div id="corner1">&nbsp;</div>
<div id="corner2">&nbsp;</div>
<div id="header" >
<a href="index.html"><img src="logo_peq.jpg" border="0" alt="IPnetConsulting" width="230" height="72" /></a>
<div id="menu">
<ul>
<li><a href="index.html">home</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="experience.html">Experience</a></li>
<li><a href="contact_us.html">contact us </a></li>
</ul>
</div>
</div>

+++++++++++++++++++

and leaving the whats above without the border value and just editing the style.css like this:

#header {
margin-bottom: 6px;
height: 90px;
background: #171717;
a img border:0;
}

++++++++++++++++++++++++++
__________________

Please login or register to view this content. Registration is FREE
allan16 is offline
Reply With Quote
View Public Profile
 
Old 03-30-2012, 05:33 PM Re: help in positioning logo
Skilled Talker

Posts: 87
Trades: 0
i got it to work but its working now
__________________

Please login or register to view this content. Registration is FREE
allan16 is offline
Reply With Quote
View Public Profile
 
Old 03-31-2012, 03:30 AM Re: help in positioning logo
lizciz's Avatar
Super Spam Talker

Posts: 845
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Perhaps you already figured this out, but chris meant for the "a img {border:0;}" to be a block of its own, not a part of the #header. As in:
Code:
#header {
    margin-bottom: 6px;
    height: 90px;
    background: #171717;
}
a img {
    border: 0;
}
It will affect all <img> tags that are inside of an <a> tag.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 04-05-2012, 02:52 AM Re: help in positioning logo
Madman340's Avatar
Web Designer

Posts: 573
Name: Jared
Location: Florida
Trades: 1
Generally, it's a good idea to include a 'reset' block at the top of your CSS file. (You can find a ton just googling things like "CSS Global Reset Code" etc) border: 0 is usually included in those, as well as a ton of other little changes that make coding a crap ton less of a headache.

Works wonders for browser support as well, considering the big browsers live in their own little worlds and arbitrarily decide what to set as a default, instead of establishing (and obeying) an overall standard.
__________________

Please login or register to view this content. Registration is FREE
for cheap hosting solutions.

RIP WMT...
Madman340 is offline
Reply With Quote
View Public Profile
 
Old 04-05-2012, 06:21 AM Re: help in positioning logo
miki86's Avatar
Extreme Talker

Posts: 239
Location: print_r($serbia);
Trades: 0
This usually goes at the top of the css file:
Code:
body, div, p, h1, h2, h3, ul, ol, a, img {margin:0; padding:0; border:none;}
Maybe i missed some elements.

Quote:
Originally Posted by cbhattarai View Post
use css file on <dive class=cssfile> and then it becomes easy for you to ad logo to the place you want..
You mean "classname" not cssfile.
miki86 is offline
Reply With Quote
View Public Profile
 
Old 04-05-2012, 10:27 AM Re: help in positioning logo
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Another way is to use the 'absolute positioning' in css to fine tune the position of the logo.
Not generally necessary and can cause more headaches than it solves, especially where IE is concerned.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to help in positioning logo
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36293 seconds with 12 queries