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
ALL I NEED is image sized correctly!
Old 03-06-2009, 02:57 AM ALL I NEED is image sized correctly!
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
Please help with this script. ALL I need is image sized correctly. This is probably way to much code.

But, I've BOLDED the image I need to be set at 300x300.

In your response, please bold WHERE you have made the change.

Thank you!


</SCRIPT></HEAD><BODY bgcolor="FFFFFF"><A name="top"></A><TABLE width="800" cellspacing="0" cellpadding="0" border="0"><TR><TD><TABLE width="800" cellspacing="0" cellpadding="0" border="0"><TR><TD width="288" rowspan="2"><IMG width="288" src="./templates/Alpha/img/../../../templates/Alpha/img/logo.gif" height="50"></TH></TD><TD><IMG width="512" src="./templates/Alpha/img/555454/oben1.gif" height="43"></TD></TR><TR><TD><IMG width="512" src="./templates/Alpha/img//../../../Alpha/img/company_name.gif" height="45"></TD></TR></TABLE></TD></TR><TR><TD><IMG width="800" src="./templates/Alpha/img/555454/oben2.gif" height="13"></TD></TR></TABLE><TABLE width="800" cellspacing="0" cellpadding="0" border="0"><TR><TD width="173" valign="top"><TABLE xmlns:lxslt="http://xml.apache.org/xslt" cellspacing="0" cellpadding="0" border="0"><TR><TD><A href="./6501.html" target=""><IMG name="CM4all_6501" src="./templates/Alpha/img/navi/6501_h.gif?cc=1236288825365" alt="Home" border="0"></A></TD></TR><TR><TD><A onmouseout="reSwapImage('CM4all_6552');" onmouseover="swapImage('CM4all_6552');" href="./6552.html" target=""><IMG name="CM4all_6552" src="./templates/Alpha/img/navi/6552_n.gif?cc=1236288825365" alt="News" border="0"></A></TD></TR><TR><TD><A onmouseout="reSwapImage('CM4all_6573');" onmouseover="swapImage('CM4all_6573');" href="./6573.html" target=""><IMG name="CM4all_6573" src="./templates/Alpha/img/navi/6573_n.gif?cc=1236288825365" alt="Links" border="0"></A></TD></TR><TR><TD><A onmouseout="reSwapImage('CM4all_6594');" onmouseover="swapImage('CM4all_6594');" href="./6594.html" target=""><IMG name="CM4all_6594" src="./templates/Alpha/img/navi/6594_n.gif?cc=1236288825365" alt="About" border="0"></A></TD></TR><TR><TD><A onmouseout="reSwapImage('CM4all_6615');" onmouseover="swapImage('CM4all_6615');" href="./6615.html" target=""><IMG name="CM4all_6615" src="./templates/Alpha/img/navi/6615_n.gif?cc=1236288825365" alt="Contact" border="0"></A></TD></TR></TABLE></TD><TD width="6" valign="top" background="./templates/Alpha/img/555454/links.gif"><IMG width="6" src="./templates/Alpha/img/555454/Abstandhalter.gif" height="384"></TD><TD valign="top" bgcolor="FFFFFF"><TABLE width="623" cellspacing="0" cellpadding="0"><TR><TD width="10">&nbsp;
</TD><TD>&nbsp;
</TD><TD width="30">&nbsp;
</TD></TR><TR><TD width="10">&nbsp;
</TD><TD valign="top"><CENTER><div id='pre_content_div' style='display:none;'></div></CENTER><P><IMG src="./img/content/6501_6505.gif"><BR clear="all"></P><P>Thank you for visiting our new site.<BR clear="all"></P><P>At present, our web site is still under construction. We are making an effort to present you with our entire spectrum of offers as soon as possible.&nbsp; In the meantime you can reach us by telephone at <BR>(708) 524-0719 or by email at <A target="" href="mailto:carolyn@momorganizing.com">carolyn@mo morganizing.com</A>.&nbsp;&nbsp;We are looking forward to hearing from you.<BR clear="all"></P><P>If you are not familiar with our company and your first contact with us is online: We would be pleased to hear from you! Please let us know what your needs and questions are, we will be more than happy to help.<BR clear="all"></P><SCRIPT>
rmculos is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-06-2009, 03:59 AM Re: ALL I NEED is image sized correctly!
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
If you want it to be 300x300, why the heck do you specify it's size to be 288x50 in the code !?

<IMG width="288" src="./templates/Alpha/img/../../../templates/Alpha/img/logo.gif" height="50">
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 03-06-2009, 04:26 PM Re: ALL I NEED is image sized correctly!
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
Ok I swear I'm not that dumb... The script was pulling the image from a sitebuilding template that automatically resized the image. So, what I did was change where the image pulled from and now I can size it however I want.

Thanks for the help though!
rmculos is offline
Reply With Quote
View Public Profile
 
Old 03-10-2009, 09:25 AM Re: ALL I NEED is image sized correctly!
Skilled Talker

Posts: 52
Name: Morten
Trades: 0
Quote:
Originally Posted by tripy View Post
If you want it to be 300x300, why the heck do you specify it's size to be 288x50 in the code !?

<IMG width="288" src="./templates/Alpha/img/../../../templates/Alpha/img/logo.gif" height="50">
Do not use that... That's **** unprofessional! here you go:

<img src="./templates/Alpha/img/../../../templates/Alpha/img/logo.gif" width="288" height="50">
__________________
- Do Nothing!
- Get Nothing!

Please login or register to view this content. Registration is FREE
Rotco88 is offline
Reply With Quote
View Public Profile
 
Old 03-10-2009, 09:48 AM Re: ALL I NEED is image sized correctly!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and the difference is?

and how does the order of the attributes make it "unprofessional" ?
__________________
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-10-2009, 10:09 AM Re: ALL I NEED is image sized correctly!
Skilled Talker

Posts: 52
Name: Morten
Trades: 0
Quote:
Originally Posted by chrishirst View Post
and the difference is?

and how does the order of the attributes make it "unprofessional" ?
I know that you are a moderator, but man... You are all over the place, and why should you even care? Normally you should have order, and that's why it's unprofessional.

The code was messed up, and that's a fact! Disagree with me, I don't care, but the code was simply messed up!
__________________
- Do Nothing!
- Get Nothing!

Please login or register to view this content. Registration is FREE
Rotco88 is offline
Reply With Quote
View Public Profile
 
Old 03-10-2009, 10:27 AM Re: ALL I NEED is image sized correctly!
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
why should you even care?
Because this is not sitepoint and some of us have developed an addiction to this place. We are help to give help in a mature and helpful way.
And insulting people telling them to change the order of their CMS generated code is in no way a "mature" nor "helpfull" way of doing it.

Rigor and professionalism are not mesured by the order of html elements attributes. Re-writting the output to order them would rather by classified as "obsessive compulsive disorder", in my opinion.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 03-10-2009, 02:27 PM Re: ALL I NEED is image sized correctly!
Skilled Talker

Posts: 52
Name: Morten
Trades: 0
Then your opinion means nothing to me!

I'm trying to help people, and yes the professiolism is mesured by the order og HTML codes etc.

Everyone can make a clean layout, but not everyone can make a clean code!

Think about it!
1:
<img src="images/something.jpg" width="50" height="50">
2:
<img height="50" src="images/something.jpg" width="50">

What looks best? Well if you saying number 2 I know your lying!
__________________
- Do Nothing!
- Get Nothing!

Please login or register to view this content. Registration is FREE
Rotco88 is offline
Reply With Quote
View Public Profile
 
Old 03-10-2009, 02:29 PM Re: ALL I NEED is image sized correctly!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The point is, it does not matter, as Chris already pointed out.
__________________
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
 
Old 03-10-2009, 02:33 PM Re: ALL I NEED is image sized correctly!
Skilled Talker

Posts: 52
Name: Morten
Trades: 0
So 1 person is saying something? Then it's correct? Maybe I should stop wasting my time on your posts.
__________________
- Do Nothing!
- Get Nothing!

Please login or register to view this content. Registration is FREE
Rotco88 is offline
Reply With Quote
View Public Profile
 
Old 03-10-2009, 03:10 PM Re: ALL I NEED is image sized correctly!
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Quote:
Originally Posted by Rotco88 View Post
Everyone can make a clean layout, but not everyone can make a clean code!

Think about it!
1:
<img src="images/something.jpg" width="50" height="50">
2:
<img height="50" src="images/something.jpg" width="50">
Actually, I don't like either of those. I like CURRENT, SEMANTICALLY CORRECT coding standards:

<img src="images/whatever.jpg" style="height:50px; width:50px;" alt="whatever" />

Geez, if you're going to play aggressively, at least have a winning hand.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 03-10-2009, 03:19 PM Re: ALL I NEED is image sized correctly!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Well.. it is still a good practice to put dimensions on the <img> itself, you never want the browser to do the calculating
__________________
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
 
Old 03-10-2009, 04:32 PM Re: ALL I NEED is image sized correctly!
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
So 1 person is saying something? Then it's correct? Maybe I should stop wasting my time on your posts.
No, but intellectual masturbation never helped much anyone. At least, not me.
Chill out. Don't get angry, drink a beer, enjoy your time here.

Quote:
Then your opinion means nothing to me!
Seriously, I hope you are not reacting like that in front of someone that don't have the same point of view than you.
At least bring something to weight your argument...

Quote:
What looks best? Well if you saying number 2 I know your lying
You do realize that your vision of beauty is not the universal definition of what is beautiful.
I, honestly, don't see any differences between the 2.
For me, a beautifully formatted code would rather be:
HTML Code:
<img
  src="http://www.whatever.com"
  alt="blah"
  title="bloh"
  width="250"
  height="187"
  style="width:250px; height:187px"
/>
There...
Readable, clear, without possible arguments the most beautiful way to layout X/HTML.
Now, what are your arguments against it?
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 03-10-2009, 04:46 PM Re: ALL I NEED is image sized correctly!
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Tripy, your example is extremely unprofessional. This would be much better.
HTML Code:
<img
  src="http://www.whatever.com"
    alt="blah"
      title="bloh"
        width="250"
          height="187"
            style="width:250px; height:187px"
/>
Isn't it prettier all in a slanted line like that?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-11-2009, 11:02 PM Re: ALL I NEED is image sized correctly!
World's Avatar
Extreme Talker

Posts: 202
Location: Santa Monica, CA
Trades: 0
Quote:
Originally Posted by serandfae View Post

<img src="http://www.webmaster-talk.com/images/whatever.jpg" style="height:50px; width:50px;" alt="whatever" />



tim

Question: in the book I learned from there was no

[code]
style=
[/style]

They actually wrote it like this:

Code:
<img src="http://www.webmaster-talk.com/images/bonfire.jpeg" 
width="300" height="550" alt="bonfire that won't burn">
Not even pixels were given in the dimensions.

Which one is now really, really correct?
World is offline
Reply With Quote
View Public Profile
 
Old 03-11-2009, 11:09 PM Re: ALL I NEED is image sized correctly!
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Well... either one could be called 'correct'. The default (no css) isn't deprecated, though I personally like serandfae's version better - and since it's CSS, I suppose you could call it really really correcter. There's not a lot of difference though.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-11-2009, 11:28 PM Re: ALL I NEED is image sized correctly!
World's Avatar
Extreme Talker

Posts: 202
Location: Santa Monica, CA
Trades: 0
So, at least, I didn't do it wrong when I did it like I found it in the book.

One thing I wondered:

You can have CSS in the middle of an HTML document?

That's new for me.

I always put all CSS on a separate stylesheet. (as I saw it in my books).

PS:

So the "style=" is different from the <style> tag?
World is offline
Reply With Quote
View Public Profile
 
Old 03-11-2009, 11:42 PM Re: ALL I NEED is image sized correctly!
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Quote:
So the "style=" is different from the <style> tag?
Well, the difference is that the "style=" isn't a tag. It's just an easy way to insert CSS internally into a page. It's normally used for overwriting CSS that may be in an external file.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-11-2009, 11:47 PM Re: ALL I NEED is image sized correctly!
World's Avatar
Extreme Talker

Posts: 202
Location: Santa Monica, CA
Trades: 0
Quote:
Originally Posted by stevej View Post
Well, the difference is that the "style=" isn't a tag. It's just an easy way to insert CSS internally into a page. It's normally used for overwriting CSS that may be in an external file.

- Steve
Thanks for this.

Very practical for quick edits.

I also heard, that if you put more style on the actual page instead of an extra style sheet it loads faster.
World is offline
Reply With Quote
View Public Profile
 
Old 03-11-2009, 11:57 PM Re: ALL I NEED is image sized correctly!
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
I also heard, that if you put more style on the actual page instead of an extra style sheet it loads faster.
That's relative.
An external style sheet is another request the browser has to make to the server.
reducing the number of external file might speed up the loading of the page, but you are talking about milliseconds here.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to ALL I NEED is image sized correctly!

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.83903 seconds with 12 queries