/    Sign up×
Community /Pin to ProfileBookmark

CSS is not working for parent div when child div is absolute in its position.

CSS is not working for parent div when child div is absolute in its position.

CSS 😀
.message .carousel-indicators1 {
margin-bottom:14px;
width: 1170px;
margin-left: -585px;
border: 1px solid #cbcaca; position: absolute;
left: 50%;
z-index: 15;
padding-left: 0;
text-align: center;
list-style: none;
}

HTML code is:

<section class=”message” style=” position: relative;”><ol class=”carousel-indicators1″><li class=”active” ui-sref=”hosting.webHosting”><i class=”icon-sharedhosting”></i> WEB HOSTING</li><li ui-sref=”domains.search”><i class=”icon-sharedhosting”></i> Domains</li><li ui-sref=”websitedesign”><i class=”icon-sharedhosting”></i> Website Design</li><li ui-sref=”marketing.bulkSMS”><i class=”icon-sharedhosting”></i> Bulk SMS</li> </ol></section>

to post a comment
CSSHTML

3 Comments(s)

Copy linkTweet thisAlerts:
@Jocar656May 10.2019 — @shobha#1603532

The style is .message ???

Look at your coding in the html doc
Copy linkTweet thisAlerts:
@shobhaauthorMay 10.2019 — @Jocar656#1603551

Yes, .message is the CSS and what is the error in html code?
Copy linkTweet thisAlerts:
@codecasteMay 10.2019 — why did you add inline CSS in message class? try separate property class .message .carousel-indicators1
×

Success!

Help @shobha spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...