div class on the same row as another div class?
6 posts
• Page 1 of 1
div class on the same row as another div class?
Hi!
Me again.
Been working with this for some days now and I cant really figure it out, so im reaching out for your help experts.
Here is my problem.
I want the "Visit Us" on the same row as "My Account" etc.
Here is my header.tpl code:
And here is my stylesheet:
Note that I dont want the Facebook link to be a part of the link class (my account, wishlist) because I want to be able to edit the Facebook link individual in my stylesheet.
Someone who can pinpoint my problem here?
Would appreciate it very much!
Thanks in advance fellas!
Me again.
Been working with this for some days now and I cant really figure it out, so im reaching out for your help experts.
Here is my problem.
I want the "Visit Us" on the same row as "My Account" etc.
Here is my header.tpl code:
- Code: Select all
<div id="link-holder">
<div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist_total"><?php echo $text_wishlist; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a><a href="<?php echo $cart; ?>"><?php echo $text_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
<div class="fb"><a href="http://www.facebook.com">visit us!</a></div>
</div>
And here is my stylesheet:
- Code: Select all
#header .links a {
font-size: 18px;
font-family: BebasNeue,Arial,sans-serif;
display: inline;
padding: 0px 0px 0px 8px;
color: #666666;
text-decoration: none;
font-weight: normal;
text-align: center;
}
#header .links a:hover {
color: #3190B0;
}
#header .links a + a {
margin-left: 8px;
}
#header .fb a {
margin-left: 50px;
margin-bottom: 15px;
font-size: 18px;
font-family: BebasNeue,Arial,sans-serif;
display: inline;
padding: 0px 0px 0px 0px;
color: #666666;
text-decoration: none;
font-weight: normal;
text-align: right;
}
Note that I dont want the Facebook link to be a part of the link class (my account, wishlist) because I want to be able to edit the Facebook link individual in my stylesheet.
Someone who can pinpoint my problem here?
Would appreciate it very much!
Thanks in advance fellas!
- johan019
- Posts: 34
- Joined: Thu Mar 08, 2012 4:52 pm
Re: div class on the same row as another div class?
You need to be looking at the css defined for link-holder .. it will have a width specified that needs to be increased
Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

irc.freenode.net #opencart
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

irc.freenode.net #opencart
-

Tcalp - Posts: 761
- Joined: Wed Jul 06, 2011 5:49 am
Re: div class on the same row as another div class?
also ... www.firebug.com <- install this for firefox .. it's a MUST HAVE tool
Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

irc.freenode.net #opencart
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

irc.freenode.net #opencart
-

Tcalp - Posts: 761
- Joined: Wed Jul 06, 2011 5:49 am
Re: div class on the same row as another div class?
Tcalp wrote:You need to be looking at the css defined for link-holder .. it will have a width specified that needs to be increased
Thank you for your answer.
Unfortunately I have already tried to increase the width but it wont "jump up" on the right row anyway.
And yes, firebug is installed, but I cant narrow it down anyway.
Any other ideas?
Thank you!
- johan019
- Posts: 34
- Joined: Thu Mar 08, 2012 4:52 pm
Re: div class on the same row as another div class?
Maybe I need an additional "holder" for my FB link since it is in its own class, not in the "link class"? Would also like to fit in Twitter link, shouldnt be impossible?
Thanks!
Thanks!
- johan019
- Posts: 34
- Joined: Thu Mar 08, 2012 4:52 pm
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: bibi999, boon, ckvist, Ernesto1959, finerden, grotechnologies, guntis.e, PlusCybernet, spudbone, SRD and 106 guests














