eduard Posted August 9, 2011 Share Posted August 9, 2011 If I want a right horizontally border of the image of a database and a left horizontally border of the image (foto) of the homepage of my website www.eduardlid.com!How do I do that? Divs? Link to comment Share on other sites More sharing options...
Drycodez Posted August 9, 2011 Share Posted August 9, 2011 dbaseImg{border-left:1px solid gray;} foto{ border-right:1px solid gray} EDIT: what do you mean by horizontal? Horizontal or vertical, which one? Link to comment Share on other sites More sharing options...
thescientist Posted August 9, 2011 Share Posted August 9, 2011 If I want a right horizontally border of the image of a database and a left horizontally border of the image (foto) of the homepage of my website www.eduardlid.com!How do I do that? Divs?what? horizontal goes from left to right. that would be the top and bottom of a square/rectangle. (i.e. image element). Vertical would be the the left and right side, going up and down. Is that what you mean? Are you trying to get borders to show for the left and right sides of your images? I assume you have already tried looking at borders in the CSS tutorials? (it's part of the box model, so I would make sure to be familiar with them).http://www.w3schools.com/css/css_border.asp Link to comment Share on other sites More sharing options...
eduard Posted August 9, 2011 Author Share Posted August 9, 2011 what? horizontal goes from left to right. that would be the top and bottom of a square/rectangle. (i.e. image element). Vertical would be the the left and right side, going up and down. Is that what you mean? Are you trying to get borders to show for the left and right sides of your images? I assume you have already tried looking at borders in the CSS tutorials? (it's part of the box model, so I would make sure to be familiar with them).http://www.w3schools.com/css/css_border.asp Sorry, it was late! (vertically, of course!) Link to comment Share on other sites More sharing options...
thescientist Posted August 9, 2011 Share Posted August 9, 2011 well, you have borders an some of your elements currently. So what's the problem, exactly? Link to comment Share on other sites More sharing options...
Drycodez Posted August 9, 2011 Share Posted August 9, 2011 border-left and border-right will do that. Link to comment Share on other sites More sharing options...
eduard Posted August 9, 2011 Author Share Posted August 9, 2011 border-left and border-right will do that. Thanks, but how? Do I have to make extra divs or classes? Link to comment Share on other sites More sharing options...
thescientist Posted August 9, 2011 Share Posted August 9, 2011 can't you just follow the examples of other elements on your own CSS page? just add the border styles to the elements that you want, using ID, class, or elements selector. what about the tutorials and your own code doesn't make sense? Link to comment Share on other sites More sharing options...
Drycodez Posted August 9, 2011 Share Posted August 9, 2011 Thanks, but how? Do I have to make extra divs or classes?You dont need a <div>, all you need is a class or you can use inline styling. E.g:<img style="border-left:2px groove red"/> Link to comment Share on other sites More sharing options...
eduard Posted August 9, 2011 Author Share Posted August 9, 2011 You dont need a <div>, all you need is a class or you can use inline styling. E.g:<img style="border-left:2px groove red"/> Ok, thanks! But where in the code? <img src="http://www.aquaculture.ugent.be/_img/database.jpg" id="dbimg" alt="img database"align="middle" width="320" height="256"s> Link to comment Share on other sites More sharing options...
eduard Posted August 9, 2011 Author Share Posted August 9, 2011 can't you just follow the examples of other elements on your own CSS page? just add the border styles to the elements that you want, using ID, class, or elements selector. what about the tutorials and your own code doesn't make sense?It´s a pity that you still (pre)judge me of the past! When I posted my first topic some weeks ago! I wrote that things had been (very) changed since I moved to this place (2 months ago!). Link to comment Share on other sites More sharing options...
thescientist Posted August 9, 2011 Share Posted August 9, 2011 oh whatever man. it's a CSS style property, geez. maybe you could just stick to the problem of answering our questions when we try and help you or just don't bother asking questions. either you understand it or you don't. If you don't, then we need to know what about it your don't understand about it. I mean, you don't even try. You ask, we give advice, you don't listen or don't explain why you don't understand, then you complain about 'prejudices' and then every one of these threads just ends up the same. what's the point... Link to comment Share on other sites More sharing options...
eduard Posted August 9, 2011 Author Share Posted August 9, 2011 oh whatever man. it's a CSS style property, geez. maybe you could just stick to the problem of answering our questions when we try and help you or just don't bother asking questions. either you understand it or you don't. If you don't, then we need to know what about it your don't understand about it. I mean, you don't even try. You ask, we give advice, you don't listen or don't explain why you don't understand, then you complain about 'prejudices' and then every one of these threads just ends up the same. what's the point...Exactly, I never wrote that you didn´t try to help me, but (as I wrote before!), it´s the way how one is trying to help ..... Link to comment Share on other sites More sharing options...
eduard Posted August 10, 2011 Author Share Posted August 10, 2011 But if you see the homepage of my website (www.eduardlid,com) the 2 images are in 1 div (content)?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><HTML><head><meta http-equiv="content-type" content="text/ html; charset=UTF-8"><title>Eduard Lid</title><link rel="stylesheet" type="text/css" href="ex1.css"></head><div id="body"><div id="header"><a href="http://www.viadeo.com/es/profile/eduard.lid"><b><h4>Profile</h4></b></a><a href="web_designer/image_and_text_database.html"><b><h4>Web designer</h4></b></a></div><div class="english spanish"><a href="versions/english/image_and_text_database.html"><img src="http://3.bp.blogspot.com/_cIPQ-HCqBAg/TAKoVdt59AI/AAAAAAAAAK4/fvqQE-B5g0w/s1600/english+flag.gif" alt="english" class="english"></a><a href="versions/espanol/base_de_datos.html"><img src="http://www.enchantedlearning.com/europe/spain/flag/Flagbig.GIF" alt="spanish" class="spanish"></a></div><div id="content"><img src="http://www.aquaculture.ugent.be/_img/database.jpg" id="dbimg" alt="img database"align="middle" width="320" height="256"s><img src="images/me.JPG" alt="Eduard Lid" align="right" width="320" height="256"></div><div id="footer"><p><h4>Eduard Lid</h4></p></div></HTML> Link to comment Share on other sites More sharing options...
Drycodez Posted August 10, 2011 Share Posted August 10, 2011 To me, i think you should learn more about html and css before you continue to build ur site. Link to comment Share on other sites More sharing options...
Drycodez Posted August 10, 2011 Share Posted August 10, 2011 <img style="border-right:3px solid blue" src="http://www.aquaculture.ugent.be/_img/database.jpg" id="dbimg" alt="img database"align="middle" width="320" height="256"s> Link to comment Share on other sites More sharing options...
eduard Posted August 10, 2011 Author Share Posted August 10, 2011 To me, i think you should learn more about html and css before you continue to build ur site.Ok, thanks very much! Link to comment Share on other sites More sharing options...
eduard Posted August 11, 2011 Author Share Posted August 11, 2011 Solved! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.