Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-20-2012, 02:29 PM   PM User | #1
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
Move up posts near header?

I'm new at this and it's probably very simple, but I was trying out to put a picture in the lower left corner of my header, and everything just dropped down. Do I need to somehow overlap the picture with the posts? If you know what I mean? I'm the worst at explaining and I'm not even english so that makes this so much more complicated. Just have a look at my blog:

http://sknutsson.blogspot.com

Hope someone can help me with this!
sandradecibell is offline   Reply With Quote
Old 02-20-2012, 02:37 PM   PM User | #2
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
I don't know if you need to look at the coding of the picture, but here it is anyway:

<p class='pos_absolute'><a href='http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s1600/free+digital+stamp_rose+illustration+(1).png' imageanchor='1' style='margin-left: 1cm; margin-right: 1cm;'><img border='0' height='248' src='http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s320/free+digital+stamp_rose+illustration+(1).png' width='300'/></a></p></div>

I might have messed it up a bit haha. But it works! Kind of.
sandradecibell is offline   Reply With Quote
Old 02-20-2012, 03:15 PM   PM User | #3
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
When you post a link to your live site, we can see all the code and css.

If you change the position:relative; to absolute, if will allow the content to move up fine, but you'll have other issues when you resize your browser.

I'm thinking your image should have been inside the region-inner main-inner div. Then using the absolute position, position it in the place you need it.
__________________
Teed
teedoff is offline   Reply With Quote
Old 02-20-2012, 04:19 PM   PM User | #4
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
So basically, I should move the code of the picture someplace else? I can't find the position:relative code anywhere near the pictrue? I'm sorry if I'm slow..
sandradecibell is offline   Reply With Quote
Old 02-20-2012, 04:29 PM   PM User | #5
5nakne
New to the CF scene

 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
5nakne is an unknown quantity at this point
could you post a link?
5nakne is offline   Reply With Quote
Old 02-20-2012, 04:32 PM   PM User | #6
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
Okay so I found something under the *Main section, where it said position:relative so I changed it. Nothing happened obviously, because I must put in measures somewhere, right?


.main-outer {
margin-top: $(main.cap.height);
background: $(main.background);
}

.main-inner {
padding-top: $(main.padding.top);
}

.main-cap-top {
position: absolute;
}

.main-cap-top .cap-right {
position: absolute;

height: $(main.cap.height);
width: 100%;

Now it looks something like this. the bold text is what I changed from being position: relative.
Nope, can't be it right? That has something to do with the text only right.

Last edited by sandradecibell; 02-20-2012 at 05:02 PM..
sandradecibell is offline   Reply With Quote
Old 02-20-2012, 04:32 PM   PM User | #7
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
Quote:
Originally Posted by 5nakne View Post
could you post a link?
Link to what, my blog? I did!
sandradecibell is offline   Reply With Quote
Old 02-20-2012, 05:23 PM   PM User | #8
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Code:
<div style="clear: both; text-align: left;" class="separator">
<a href="http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s1600/free+digital+stamp_rose+illustration+(1).png" imageanchor="1" style="margin-left: 1cm; margin-right: 1cm;">
<img width="300" height="248" border="0" src="http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s320/free+digital+stamp_rose+illustration+(1).png"></a></div>
Thats the Rose image, right?

Then the CSS for that img is:

Code:
a img {
    border: medium none;
    position: absolute;
}
which is in the File:

static/v1/widgets/3808626252-widget_css_2_bundle.css
__________________
Teed
teedoff is offline   Reply With Quote
Old 02-20-2012, 06:12 PM   PM User | #9
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
Quote:
Originally Posted by teedoff View Post
Code:
<div style="clear: both; text-align: left;" class="separator">
<a href="http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s1600/free+digital+stamp_rose+illustration+(1).png" imageanchor="1" style="margin-left: 1cm; margin-right: 1cm;">
<img width="300" height="248" border="0" src="http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s320/free+digital+stamp_rose+illustration+(1).png"></a></div>
Thats the Rose image, right?

Then the CSS for that img is:

Code:
a img {
    border: medium none;
    position: absolute;
}
which is in the File:

static/v1/widgets/3808626252-widget_css_2_bundle.css
Oh my god, dude. Nailed it. Now all i need to do is move down "favoriter", and I'm done!

Last edited by sandradecibell; 02-20-2012 at 06:22 PM..
sandradecibell is offline   Reply With Quote
Old 02-20-2012, 07:02 PM   PM User | #10
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
Okay so the problem with this (I think it's because of that edit at least) is that all pictures on my blog gets really weird (see last post on the front page) how do I fix that?
sandradecibell is offline   Reply With Quote
Old 02-20-2012, 07:06 PM   PM User | #11
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Quote:
Originally Posted by sandradecibell View Post
Okay so the problem with this (I think it's because of that edit at least) is that all pictures on my blog gets really weird (see last post on the front page) how do I fix that?
You'll need to assign a class or id to the image you want to style. Then style that class/id

So instead of a img {some styles here}

you could do

<img id="rose" src="rose.jpeg">

then in your style sheet replace "a img" with:

#rose {
border: medium none;
position: absolute;
}

If you apply a style to the img tag, then of course every img in your site will get those css attributes applied to them. If you give a single image an id or class, and then style that id or class, then only the img with that id or class gets styles. You can read more about specificity here. Hope this helps.
__________________
Teed

Last edited by teedoff; 02-20-2012 at 07:10 PM..
teedoff is offline   Reply With Quote
Old 02-20-2012, 07:10 PM   PM User | #12
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
Quote:
Originally Posted by teedoff View Post
You'll need to assign a class or id to the image you want to style. Then style that class/id

So instead of a img {some styles here}

you could do

<img id="rose" src="rose.jpeg">

then in your style sheet replace "a img" with:

#rose {
border: medium none;
position: absolute;
}
Okay that makes sense, do I paste <img id="rose" src="rose.jpeg"> into the HTML template? Near the code for the photo or something?
sandradecibell is offline   Reply With Quote
Old 02-20-2012, 07:31 PM   PM User | #13
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
I tried using the img id code but it only allowed me to save the following: <div class='rose' src=' free+digital+stamp_rose+illustration+(1).png'/>

When I put #rose {
border: medium none;
position: absolute;
} into the CSS absolutely nothing happened. I tried to put a img {
border: medium none;
position: relative;
} into it as well because I thought that would make all the other pictures position relative? Nope, I was wrong once again. haha
sandradecibell is offline   Reply With Quote
Old 02-20-2012, 07:46 PM   PM User | #14
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
No, no, you need to find that section of code in your markup where the image is coded:

Code:
<div style="clear: both; text-align: left;" class="separator">
<a href="http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s1600/free+digital+stamp_rose+illustration+(1).png" imageanchor="1" style="margin-left: 1cm; margin-right: 1cm;">
<img width="300" height="248" border="0" src="http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s320/free+digital+stamp_rose+illustration+(1).png"></a></div>
Then give it an id="rose":

<div id="rose" style="clear: both; text-align: left;" class="separator">
<a href="http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s1600/free+digital+stamp_rose+illustration+(1).png" imageanchor="1" style="margin-left: 1cm; margin-right: 1cm;">
<img width="300" height="248" border="0" src="http://2.bp.blogspot.com/-K8ZracELseo/T0I5OEYLSXI/AAAAAAAAAK8/TVSSYYF7fgk/s320/free+digital+stamp_rose+illustration+(1).png"></a></div>

Then change the:
Code:
a img {
    border: medium none;
    position: absolute;
}
to:
Code:
#rose{
    border: medium none;
    position: absolute;
}
__________________
Teed
teedoff is offline   Reply With Quote
Users who have thanked teedoff for this post:
sandradecibell (02-20-2012)
Old 02-20-2012, 08:02 PM   PM User | #15
sandradecibell
New Coder

 
Join Date: Feb 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
sandradecibell is an unknown quantity at this point
yeeessss thank you so much! It's not easy being new at this, nothing really makes any sense to me yet haha. If I could, I would hug you. I've learned a lot!
sandradecibell is offline   Reply With Quote
Reply

Bookmarks

Tags
blogger, blogspot, css, html, picture

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:16 PM.


Advertisement
Log in to turn off these ads.